[PHP] excuting a shell command in linux as root

2003-10-08 Thread Michael P. Carel
Hi, Is there any way to execute a shell command line in PHP as root? I want to execute it using a web browser, i'm using apache and it runs as nobody. Any idea/help/suggestions? Thanks in advance mike -- PHP General Mailing List (http://www.php.net/) To unsubscribe, visit:

Re: [PHP] excuting a shell command in linux as root

2003-10-08 Thread Ryan Thompson
First off a warning repeated many times over I'm sure. You sure you want to do that? It's very insecure Now that my butts covered you might want to take a look at sudo On Wednesday 08 October 2003 03:14, Michael P. Carel wrote: Hi, Is there any way to execute a shell command line in

Re: [PHP] excuting a shell command in linux as root

2003-10-08 Thread Marek Kilimajer
It is questionable if it is really insecure. sudo allows great control over what commands it can run with what parameters. If you combine it with php input checks it gets pretty secure. But that means you HAVE TO know what you are doing. Ryan Thompson wrote: First off a warning repeated many