I want to start up a program through a php page. For example, gedit. I found that the user is apache by running this: - passthru('whoami');
since apache might not have access to run a certain command, I'll use sudo. I edited the sudoers file in /etc/sudoers and underneath the line: # User privilege specification, I added:
apache ALL=(ALL) NOPASSWD: ALL
which would give apache access to run any command without a password. So in my php file the line looks like this:
exec("sudo gedit");
And it doesn't do anything. Any suggestions.
-- PHP General Mailing List (http://www.php.net/) To unsubscribe, visit: http://www.php.net/unsub.php