作者JoeHorn (每个人心中都有一段被删)
看板PHP
标题Re: [请益] 要怎麽用php程式切换成root权限?
时间Wed Apr 12 20:43:47 2006
※ 引述《punpun (小金 )》之铭言:
: ※ 引述《JoeHorn (每个人心中都有一段被删)》之铭言:
: : 你需要的是 suPHP .
: : http://www.suphp.org/
: : suPHP is a tool for executing PHP scripts with the permissions of their
: : owners. It consists of an Apache module (mod_suphp) and a setuid root binary
: : (suphp) that is called by the Apache module to change the uid of the process
: : executing the PHP interpreter.
: 有使用过suphp的大大可不可以分享依下心得压~~~
: 怎麽测试安装有没有成功呢^^?
写个 php 程式, 把档案拥有者用 chmod 切换成 root .
php 程式里面会去开档或写档, 而开写档的目录只有 root 才能动.
: 一直找不到相关的语法说明文件~~~~
语法跟 php 一样!
--
※ 发信站: 批踢踢实业坊(ptt.cc)
◆ From: 221.169.82.134