Re: [請益] 要怎麼用php程式切換成root權限?

看板PHP作者 (每個人心中都有一段被刪)時間19年前 (2006/04/12 20:41), 編輯推噓0(000)
留言0則, 0人參與, 最新討論串5/6 (看更多)
※ 引述《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
文章代碼(AID): #14FFM2qa (PHP)
討論串 (同標題文章)
文章代碼(AID): #14FFM2qa (PHP)