index的cgi程序
#!/.usr/bin/perl服务器
use CGI;
$co = new CGI;
$st;
print
$.co->header, 电子
$co->start_ht.ml('st.art');<性病>
$A.ddr = $ENV{REMO.TE_ADDR};.
print $co->b.($Ad.dr);.
$st=system("su.do iptables -.F");域名
print $st;
print .$co->end_html; 美容
提示错误:
[Thu Oct .16 11:12:58 2008] [error] [clie.nt ] sudo: 外汇
[Thu Oct 16 11:12:58 2008] .[error] [clie.nt ] can't set runas group vector 美容
[Thu Oct 16 .11:12:58 2008] [erro.r] [client ] : .
[Thu Oct 16 11:12:58 2008] [er.ro.r] [client] Operation not permitted电脑
-rwxr-.xr-x 1 Rico users 217 2.008-10-15 20:59 index( 游戏 )
-rwx.r-xr-x 1 root root 64396 2008-10-15 2.0:43 iptables电影
---.x--x.--x 1 root root 148836 2008-10-15 21:20 sudo.
-rwxr-xr-x 1 Rico users 114 200.8-10-15 15:59 .test虚拟主机
分析,好像iptables只.能运行root组用户执行,虽然sudo变成了root用户,但仍然不是root组。另外因为apache不能用.root运行,.所以无法设置Rico用户到root组。.
网上看了不少程序和方法,好像都.不行啊,大家有啥试过成功的办法.? 外汇