Linux - NewbieThis Linux forum is for members that are new to Linux.
Just starting out and have a question?
If it is not in the man pages or the how-to's this is the place!
Notices
Welcome to LinuxQuestions.org, a friendly and active Linux Community.
You are currently viewing LQ as a guest. By joining our community you will have the ability to post topics, receive our newsletter, use the advanced search, subscribe to threads and access many other special features. Registration is quick, simple and absolutely free. Join our community today!
Note that registered members see fewer ads, and ContentLink is completely disabled once you log in.
If you have any problems with the registration process or your account login, please contact us. If you need to reset your password, click here.
Having a problem logging in? Please visit this page to clear all LQ-related cookies.
Get a virtual cloud desktop with the Linux distro that you want in less than five minutes with Shells! With over 10 pre-installed distros to choose from, the worry-free installation life is here! Whether you are a digital nomad or just looking for flexibility, Shells can put your Linux machine on the device that you want to use.
Exclusive for LQ members, get up to 45% off per month. Click here for more info.
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"
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.
Originally posted by ryancw 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.
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
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.
LinuxQuestions.org is looking for people interested in writing
Editorials, Articles, Reviews, and more. If you'd like to contribute
content, let us know.