LinuxQuestions.org

LinuxQuestions.org (/questions/)
-   Linux - Newbie (https://www.linuxquestions.org/questions/linux-newbie-8/)
-   -   RHEL 4, /etc/sysconfig/iptables permission denied (https://www.linuxquestions.org/questions/linux-newbie-8/rhel-4-etc-sysconfig-iptables-permission-denied-800681/)

rfreiberger 04-07-2010 06:38 PM

RHEL 4, /etc/sysconfig/iptables permission denied
 
I'm installing Webmin on a older DNS server here at work. Can't connect to port 10000 so I checked the server ports via NMAP, looked like the port is closed. I tried to run /etc/sysconfig/iptables but this returned a "permission denied" message.

I'm logged in as root, not sure what I'm missing, maybe I'm running the command incorrectly?

Thanks!

AlucardZero 04-07-2010 07:38 PM

Is /etc/sysconfig/iptables a binary or an executable?

ArfaSmif 04-07-2010 08:47 PM

You will find that /etc/sysconfig/iptables is the config file for iptables. You probably want to run /sbin/iptables .

rfreiberger 04-07-2010 08:54 PM

I ran the command "file iptables" and the return is "iptables: ASCII text".

To make sure I also checked the file type using ls, it's listed with rw access.

rfreiberger 04-07-2010 08:56 PM

Quote:

Originally Posted by ArfaSmif (Post 3928088)
You will find that /etc/sysconfig/iptables is the config file for iptables. You probably want to run /sbin/iptables .

Looks like that did the trick, I was following the document from Webmin's site and assumed it was correct.

Thanks!


All times are GMT -5. The time now is 08:38 AM.