How To: Sudo without password

You feel bored of being asked the same question every time when  sudo asking for the password, as you know you can’t log-in as a root in Ubuntu, so sudo is used almost all the time, well to configure sudo not to ask for a password there are two ways the easy one is to run visudo, this command is to edit the list of sudoers list (sudo users).

The harder way to do it is to edit the file /etc/sudoers

nano /etc/sudoers

Add the following to the end of the file:

username ALL=(ALL) NOPASSWD: ALL

Note:  It should be the last line in the file, username is your Ubuntu username.

It will work on almost any Linux ditribution

VN:F [1.8.3_1051]
Rating: 5.0/5 (2 votes cast)
VN:F [1.8.3_1051]
Rating: 0 (from 0 votes)
How To: Sudo without password5.052

Tags: , , ,

2 Responses to “How To: Sudo without password”

  1. Ahmed tawfik says:

    Really it’s a good information

Leave a Reply

Get Adobe Flash playerPlugin by wpburn.com wordpress themes