Tek-Tips is the largest IT community on the Internet today!

Members share and learn making Tek-Tips Forums the best source of peer-reviewed technical information on the Internet!

  • Congratulations wOOdy-Soft on being selected by the Tek-Tips community for having the most helpful posts in the forums last week. Way to Go!

iptables "not root"

Status
Not open for further replies.

hisham

IS-IT--Management
Nov 6, 2000
194
How can I allow another user than root to run iptables command ??

TIA
 
In /etc/sudoers I tried all the following:

%jhon ALL=(ALL) ALL
jhon ALL=(ALL) ALL
jhon ALL=(root) NOPASSWD: /sbin/iptables

but i still have this error when I run iptables as jhon:
iptables v1.2.9: can't initialize iptables table `filter': Permission denied (you must be root)
 
looks as if you need write permissions to .../filter, perhaps /etc/iptables/filter.

You could create a group 'iptables', add root and jhon to the iptables-group, and change owner (group) of the file to 'iptables', and set write permissions to the group.

seeking a job as java-programmer in Berlin:
 
Status
Not open for further replies.

Part and Inventory Search

Sponsor

Back
Top