Goal: enable us to use the iptables command in the terminal
- CentOS 5.2
- Add /sbin to your path by editing your ~./bash_profile: user $ vi ~/.bash_profile
- Append /sbin to the PATH definition. In my file, this looks like: PATH=$PATH:$HOME/bin –> PATH=$PATH:$HOME/bin:/sbin
- Save and close ~/.bash_profile
- Reload ~/.bash_profile: user $ source ~/.bash_profile
8 thoughts on “tutorial: fix “iptables: command not found” error on CentOS 5.2”
thanks for your sharing. its saves my time and work.
thanks again erik
I’m happy it was useful 🙂 Happy Holidays
Thx man — it really helps a lot —
cool. i’m glad it was helpful
vijay# Export PATH=$PATH:$HOME/bin:/sbin/
that s it.
Thanks a lot, for sharing, I am sharing on my blog…
Glad it was helpful
Comments are closed.