Tuesday, January 10, 2012

sudo not working in PHP

If your sudo is not working from your PHP Script using either system or exec, try the following

and check if there is a line like this
Defaults requiretty

if there is - comment it out, it stops non-tty users from using sudo.

No comments: