Hello all,
I have a script which is going to add a new user to the system. I 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 the browser. I tried the following, changing the owner of the script to apache and root while giving it 711 permission and 4711 permission. But all does not work. It seems that apache just reads the file and execute the commands in it. How can I execute a script in any folder (on the system) as root.
Bye.