After installing a new Linux commands like
/usr/sbin/s2diskonly work with entering your password everytime (or precisely: after every reboot).
This can be changed with visudo:
export EDITOR=vi; visudoInside the /etc/sudoers.conf you will see:
# User privilege specificationAnd this is the problem:
root ALL=(ALL:ALL) ALL
# Members of the admin group may gain root privileges
%admin ALL=(ALL) ALL
First idea is to double the line
root ALL=(ALL:ALL) ALLand do the desired changes.
schroff ALL=(ALL) NOPASSWD: /usr/sbin/s2disk
BUT: This will not work!
You have to add your line at the end of the file and after you exit vi (or whatever editor you have configured) it will work...