For some reason I can't get sudo to work from an online php script using
shell_exec.

 

I have put this in the sudoers file: 

www     ALL=(ALL) ALL

(full access is temporary until I get it working)

 

When I run:

echo shell_exec("sudo echo hello");

 

in a php script in a web page running on apache2, it does nothing - I don't
get any feedback.

 

 

echo shell_exec("whoami"); confirms that www is the correct user.

 

 

Any ideas?

 

Paul

_______________________________________________
freebsd-questions@freebsd.org mailing list
http://lists.freebsd.org/mailman/listinfo/freebsd-questions
To unsubscribe, send any mail to "[EMAIL PROTECTED]"

Reply via email to