[Voyage-linux] Orderly Shutdown

Darshaka Pathirana (spam-protected)
Fri May 14 16:38:30 HKT 2010


On 05/14/2010 01:46 AM, Gustin Johnson wrote:
> On 10-05-13 06:56 AM, Darshaka Pathirana wrote:
> <snip>
>>
>> We implemented a php-over-webserver function which mainly is a system
>> call to "sudo reboot" (and adding www-data to sudoers with
>> the NOPASSWD option)... works fine so far.
> 
> You may wish to lock it down it further so that the www-data user can
> only use sudo to run reboot.

Right. Made that unclear. The line looks like this:

www-data ALL = NOPASSWD: /sbin/reboot

Regards,
 - Darsha





More information about the Voyage-linux mailing list