<?xml version="1.0" encoding="UTF-8" ?>
<rss version="2.0">
<channel>
<title><![CDATA[linuxの飘扬]]></title> 
<link>https://www.linuxfly.org/index.php</link> 
<description><![CDATA[Power by www.linuxfly.org]]></description> 
<language>zh-cn</language> 
<copyright><![CDATA[linuxの飘扬]]></copyright>
<item>
<link>https://www.linuxfly.org/post/343/</link>
<title><![CDATA[[原]在apache中运行root权限的CGI脚本]]></title> 
<author>linuxing &lt;emos#linuxfly.org&gt;</author>
<category><![CDATA[常见服务]]></category>
<pubDate>Thu, 19 Mar 2009 03:16:52 +0000</pubDate> 
<guid>https://www.linuxfly.org/post/343/</guid> 
<description>
<![CDATA[ 
	&nbsp;&nbsp;&nbsp;&nbsp;为了安全保护，apache默认的编译选项是不支持root作为其服务运行的用户的，而应使用apache用户来运行。但在某些情况下，我们确实有这样的需求，如：编写了某个CGI程序，其中需要调用/sbin下的命令，挂载某个设备文件、修改iptables参数等。下面我们利用suid权限来解决，提供两个方法。<br/><strong><span style="color: #FF0000;">（注意，一旦给脚本赋予suid权限，让apache可运行root权限的程序时，务必做好安全检查，特别是由客户端输入的信息。）</span></strong><br/>............<br/><br/>Tags - <a href="https://www.linuxfly.org/tags/apache/" rel="tag">apache</a>
]]>
</description>
</item><item>
<link>https://www.linuxfly.org/post/343/#blogcomment6120</link>
<title><![CDATA[[评论] [原]在apache中运行root权限的CGI脚本]]></title> 
<author>logicmd &lt;i@logicmd.net&gt;</author>
<category><![CDATA[评论]]></category>
<pubDate>Tue, 06 Nov 2012 07:58:39 +0000</pubDate> 
<guid>https://www.linuxfly.org/post/343/#blogcomment6120</guid> 
<description>
<![CDATA[ 
	如果就my $HTML=qx(id);都permission deny怎么办？是apache配置错误么？
]]>
</description>
</item>
</channel>
</rss>