Use sudo without being asked for your password

Run in a terminal:

sudo visudo

The sudoers file will be opened with your default editor. There add this line at the end of the file:

username ALL=(ALL) NOPASSWD: ALL

Then save and exit.

sudo

You might also like

Change root’s password when sudoers file is misconfigured and sudo won’t work
If you misconfigure the sudoers file you may end up in a situation where you wouldn't be able to use...

Change password for postgres user in PostgreSQL
In order to change the password for the postgres user you should NEVER do this:$ sudo passwd postgresBy...

Change root password in MySQL
In GNU/Linux:$ sudo mysqld_safe --skip-grant-tables & $ mysql -u root -p #press enter to use a...

Turn on syntax highlighting for vi and vim in Mac OS X
Turning syntax highlighting for vi and vim in Mac OS X is as simple as creating a file called ".vimrc"...

Leave a Comment

This site uses Akismet to reduce spam. Learn how your comment data is processed.