I have managed to get a 'shutdown' and 'reboot' icon on my desktop by editing /etc/sudoers and adding:
[my user name] ALL=(ALL) ALL
and also commenting out
%sudo ALL=NOPASSWD: ALL
The shutdown icon has the command 'sudo halt' and the working path is /sbin/
The Reboot icon has the command 'sudo reboot' and same work path.
Both work perfectly for 1-click shutdown or reboot.
My concern is security by allowing 'NOPASSWD: ALL'.
Is there a better way to edit sudoers to allow NOPASSWD for just these 2 actions?
This is on a laptop with only myself having access.
I am running Gutsy.
[my user name] ALL=(ALL) ALL
and also commenting out
%sudo ALL=NOPASSWD: ALL
The shutdown icon has the command 'sudo halt' and the working path is /sbin/
The Reboot icon has the command 'sudo reboot' and same work path.
Both work perfectly for 1-click shutdown or reboot.
My concern is security by allowing 'NOPASSWD: ALL'.
Is there a better way to edit sudoers to allow NOPASSWD for just these 2 actions?
This is on a laptop with only myself having access.
I am running Gutsy.
Comment