1

What am I doing wrong? Visudo

view story
linux-howto

http://askubuntu.com – I am trying to make it so that I can have a script running on my computer that will check to see if a reboot code has been sent, and it will be checking a MySQL database. I have the php script written, but when I run it, it says that to reboot I need to be root. PHP: shell_exec("/sbin/reboot"); I have tried to edit visudo and added this to bottom of the file: ALL ALL = NOPASSWD: /sbin/reboot It still doesn't work. What do I need to do differently? (HowTos)