I have a file that is a bash script that requires SUDO to work.
I can run it from the command line using SUDO but I will be prompted to put in the SUDO password.
I want to run this script from php via shell_exec
but I if I call SUDO, its not like a command line where I can be prompted for the password. Is there a way to pass the password for sudo with the sudo call?
How can I do this?
chgrp www-data script.sh && chmod g+x script.sh
. – Laudationsvn commit
but first Icd /var/www
to call svn commit from the working copy. Is there a way I can add permissions to do that for apache user www-admin? – Lingenfeltersvn commit
need root? – Apollonius