I have a web site on a Mac server that uses php's "exec" function to run a bash script on the server. It's password protected, and can only run certain code, so I'm not worried about security.
My problem is that I want to add a feature that requires the sudo command. However, the script is run by the user _www, which apparently can't do the sudo command.
What are my options for making this work?
Thanks!
My problem is that I want to add a feature that requires the sudo command. However, the script is run by the user _www, which apparently can't do the sudo command.
What are my options for making this work?
Thanks!