iptables command not found
Trying to set up a firewall with iptables. Only had Linux 2 weeks. Running RH9.
Found under "Services" dialog box that ipchains was checked to run, but was listed as "incompatible with this kernel." I understand from RH website that ipchains will interfere with iptables. So I stopped ipchains and restarted iptables. then went to terminal, changed to su any command that I type that begins with iptables is met with an error message, "iptables command not found" What am I doing wrong? Thanks. |
though you probably have iptables support and
functions compiled into your kernel or as modules, you might not have iptables installed yet. go to rpmfind.net and get the rpm there. good luck. |
had to be logged in as root
I may have stumbled upon the solution. Seems I had to be acutally logged in from the get-go as root. Typing su in the terminal window didn't do the trick. But when I logged out, returning the the RH login screen, and then logged in as root, iptables worked fine.
|
hm... very odd.
|
Re: had to be logged in as root
Quote:
Thank You! I had this same problem and it was driving me crazy. I logged in as root and it works fine. |
I think what you were looking for is su -
That has the same effect as logging in as root. Simply doing su by itself doesn't give you access to all of the root commands. Plus doing su - is alot easier than logging in and out every time you want to do something as root. HTH |
Did not work using su -
Yes, it is a pain logging in and out. I am using RH 9. Maybe I am doing something wrong. |
Possibly. How are you entering the command? Like this:
$ su - to which Linux should ask you for the root password: [foo@foobar]$ su - Password: After you enter the root password, if you type whoami and press enter, what does it say? Do you get any errors throughout the process? |
Thats how I do it.
whoami shows root However, I can not do alot of commands. It tells me, command not found. Whereas, if I log right in as root I have no problem at all. Maybe it's a RH thing. Thank you for the help. :) |
DOH! forgive me. All I did was su then password. I reread your post then did su - password. It works great. THANKS!
|
So you can run the iptables command now?
|
Quote:
|
Cool. Glad to help out.
-CC |
All times are GMT -5. The time now is 03:41 AM. |