I need to enable shutdown and reboot from command without the need of entering sudo password.
I know i have to edit /etc/sudoers file and add custom entry to it.
My UserID is already added to admin group.There is this entry for admin group(at the very end of file) already in sudoers file which allows ALL access to admin group.
So,my question is:if i enter following command AFTER the existing line for %admin
Code:
%admin ALL=NOPASSWD: /sbin/shutdown,/sbin/reboot
will it affect the original rule of %admin?
My requirement is very clear:sudo pwd to be entered for all sudo commands except shutdown and reboot..
Waiting for expert's inputs..
Bookmarks