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 /etc/sudoers
you can not edit this file directly. You need to use the visudo command:
> 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
Where username is your username.
Then save the file and exit the editor.
You will now be able to use sudo without a password.
sudo tips
sudo -e fileto editfileas root.sudo -u user commandto runcommandas useruser.sudo -u user -ito run login shell foruser.