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 safe and exit.

You might also like

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"...
Run shell commands in Mac OS X executing a normal application
Once I installed Apache2+MySQL5+PHP5.3 using MacPorts I wanted to start and stop the services without...
Change root password in MySQL
In GNU/Linux: $ sudo mysqld_safe --skip-grant-tables & $ mysql -u root -p #press enter to use a...
Can’t change user options in MySQL Administrator
May be you installed MySQL 5 and you are not able to change user information, schema privileges and resources...
Leave a comment ?

0 Comments.

Leave a Comment