> Source: [sk170000](https://support.checkpoint.com/results/sk/sk170000)

# sk170000 - Unable to run firewall commands in expert mode

| Property | Value |
|----------|-------|
| Solution ID | sk170000 |
| Date Created | 2020-10-14 |
| Last Modified | 2020-10-14 |
| Technical Level | General |
| Products | Security Gateway, Security Management Server |
| Versions | R82.10, R82, R81.20, R82.10, R82, R81.20, R82.20 |
| OS | Gaia |

## Symptoms

- The user is unable to run firewall commands (for example, *fw ctl* or *fw stat* ) in expert mode.   
**Note** : The user has edited *\~/.bash_profile* with custom settings.

## Cause

A custom path was set in *\~/.bash_profile* .   

This path overwrites the system environment's path that prevents programs from being run without their full path.

<br />

## Solution

Reset to the default *PATH=$PATH:$HOME/.local/bin:$HOME/bin* in the bash profile.  

If you want to add custom path locations as well, you must amend them for the path.   

For example, if you want */var/log/customscripts* to run scripts in the directory without calling the full path, you would need the following in *\~/.bash_profile* :  

*PATH=$PATH:$HOME/.local/bin:$HOME/bin:/var/log/customscripts*

<br />

---

# Agent Instructions

This content is from the Check Point Support Center (https://support.checkpoint.com), the official knowledge base for Check Point cybersecurity products.

## Navigating This Knowledge Base

- **Complete index**: [llms.txt](https://support.checkpoint.com/llms.txt)
- **All SK articles**: [SecureKnowledge Sitemap](https://support.checkpoint.com/sitemaps/secureknowledge-sitemap-index.xml)
- **SK article URL pattern**: `https://support.checkpoint.com/results/sk/{skId}`
- **Markdown responses**: AI bot User-Agents automatically receive `text/markdown` content
