Mac iTOps Tube

Wednesday, May 2, 2012

Help about apache: permission as root

Hello all,

Today i have a small problem but i can not solve it.

i try to run : (with apache)


PHP Code:







bash-3.2service iptables status
Table
filter
iptables v1.3.5
can't initialize iptables table `filter'Permission denied (you must be root)
bash-3.2









But i have set apache group to root


PHP Code:







[root@ns05 fw]# id apache
uid=48(apachegid=0(rootgroups=0(root),502(admin









and edit visudo as below


PHP Code:







 root    ALL=(ALL)       ALL
 apache  ALL
=(root)   NOPASSWDALL
 
%root   ALL=(ALL)       ALL 









but i can not run service iptables status as apache.











No comments:

Post a Comment