I've followed the instructions at https://askubuntu.com/a/281093/546023 to unset my user's password and it all worked just fine.
In addition I have added the following line in sudoers
myusername ALL=(ALL) NOPASSWD:ALL
However whenever I do service someservice restart
it asks me for a password. What's worse no password works. In order to get it to work I need to always do sudo service someservice restart
. Note that sudo
never requires a password now.
Am I doing something wrong?
This is how my user settings look like right now:
sudoers
line for passwordless operation, so you can revert the mess. – PerlDuck Apr 05 '18 at 11:11