exec question

Do you have a question? Post it now! No Registration Necessary.  Now with pictures!

Threaded View
I'm using php with apache that runs as user www on my unix box.

How do I use exec function in php to execute a command not as www but
as root ?


Re: exec question

Not sure you can...you might trying using su or sudo with your command.

But the fact that it isn't trivial suggests something else....it might
not be such a hot idea to be running programs as root from a web

Site Timeline