Sudo without password

Started by ghostdog, January 07, 2011, 03:08:28 AM

Previous topic - Next topic

ghostdog

Hi there
I am sure you will agree with me that every time we enter " sudo " we are prompted with password request !
well, we can get around it this way:
* Open shell and type :  sudo visudo

Add the following line to the END of the file :  <username> ALL=NOPASSWD: ALL
Replace <username> with your user name (without the <>).

Exampl:  michael ALL=NOPASSWD: ALL

* Hit Ctrl + o  + Enter  to confirm, and Ctrl + x  to save and exit.

That's it from now on, everytime you type " sudo" , you wont be prompted for password !

Enjoy
GD