Hi. I want to execute a shell command from a php script. But the thing is, it's a command not accesible to everyone, only the root can use it. How do I make my PHP file become root, or is there another trick? Thanks, Fallus
Check out this thread :
http://marc.theaimsgroup.com/?l=php-general&m=97538293207334&w=2
Perhaps it will help. There are a few discussions on this within mailing list archives. I do not have an answer BUT have seen this topic go by a few times ...
I think you can use exec() or system() in combination with 'su' or 'sudo'.
Good luck,
Tuurlijk!