Date: Sat, 19 Feb 2005 18:50:45 -0000 From: "Paul" <paul@theharbour.eclipse.co.uk> To: <freebsd-questions@freebsd.org> Subject: shell_exec sudo problem Message-ID: <E1D2ZgO-0005dn-00@marl.lancs.ac.uk>
next in thread | raw e-mail | index | archive | help
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
Want to link to this message? Use this URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?E1D2ZgO-0005dn-00>
