Simple way to run stuff like sudo shutdown without entering a password.
Tip: do not use this in production, I use it to shutdown my VMs when I'm done working
- run:
sudo EDITOR=vim visudo - add a new group, let's say named
noners:%noners ALL=(ALL) ALL - run:
sudo vim /etc/sudoers.d/g_noners - let's say the user you want to run sudo without password is
marianthen just add: