sudo with no password
Just a reminder on how to enable password-less sudo for a user.
The permissions for
sudo is in a file
you can not edit this file directly. You need to use the
> sudo visudo
(you will probably have to enter your password.)
This will bring up the default editor with the contents of the file.
Then enter in at the end of the file the following.
username ALL=(ALL) NOPASSWD: ALL
username is your username.
Then save the file and exit the editor.
You will now be able to use
sudo without a password.
sudo -e fileto edit
sudo -u user commandto run
sudo -u user -ito run login shell for