On Sun, 24 Nov 2002, Devdas Bhagat wrote:
On 24/11/02 11:09 +0530, Amish Munshi wrote:
am using PHP to execute that script, I have a suid on that script (shell script). But I get permission denied in the logs, the page opens well in
<snip> suid bits don't work on shell scripts. `usermod -p $crypted_password` in a SUID PHP script
I want to add a user, not modify it. I want to add a new virtual host to apache, so wrote a shell script to create a new <VirtualHost ...>.......</VirtualHost> section and then append it to httpd.conf and do a HUP to the apache servers. I am still right there where I started off. How do I execute a shell script (or even a command) as root using PHP. Thanks for the help.
Devdas Bhagat