I am running the following command line:
myuser@server:/var/www/html/folder/htdocs$ php remove.php
myuser is not in the sudoers file. This incident will be reported.
Within remove.php I run:
exec('sudo -u myuser /usr/bin/wipe '.$main_path.$base.' -f -c -s');
And I've set my sudoers file:
www-data ALL=(myuser) NOPASSWD: ALL
And I've set sudoers to 0440:
-r--r----- 1 root root 838 Sep 18 11:07 sudoers
Why am I told that myuser isn't in the sudoers file when it is?