View Single Post
Old 04-29-2010, 04:27 PM  
ProG
Confirmed User
 
Join Date: Apr 2009
Posts: 1,319
What does the script do? I'm positive there is an alternative to using root.

If you are really inclined to do so, just add the script path into your sudoers file and that will allow you to sudo when calling that script. Then you can create another PHP script to run via HTTP that uses something like exec('sudo php /script.php')
__________________
History will be kind to me for I intend to write it.

Last edited by ProG; 04-29-2010 at 04:28 PM..
ProG is offline   Share thread on Digg Share thread on Twitter Share thread on Reddit Share thread on Facebook Reply With Quote