歡迎來到Linux教程網
Linux教程網
Linux教程網
Linux教程網
Linux教程網 >> Linux綜合 >> 學習Linux >> php利用root權限執行shell腳本,root權限shell腳本

php利用root權限執行shell腳本,root權限shell腳本

日期:2017/3/3 17:59:40   编辑:學習Linux

php利用root權限執行shell腳本,root權限shell腳本

php利用root權限執行shell腳本,root權限shell腳本


vi /etc/sudoers ,

為apache用戶賦予root權限,並且不需要密碼,還有一步重要的修改(我被困擾的就是這個地方)

root ALL=(ALL) ALL

apache ALL=(ALL) NOPASSWD:ALL

還有一個地方需要注釋掉

#Defaults requiretty

http://xxxxxx/Linuxjc/1181862.html TechArticle

Copyright © Linux教程網 All Rights Reserved