Tag Info

New answers tagged

0

In /etc/sudoers file add a line: %sudo ALL= NOPASSWD: /sbin/shutdown To edit /etc/sudoers file, run visudo command.


0

The easiest way for this without using sudo everytime is giving shutdown command special permissions, so that if the user runs shutdown it will run with root permissions for this do sudo chmod u+s /sbin/shutdown now the shutdown command won't need root everytime you issue the command and if you wan't to revert it you can always do sudo chmod u-s ...



Top 50 recent answers are included