I don't like sudo asking me password all the time (almost all the time...). As there is no root login in Ubuntu, sudo is the most used command :)
Here is how to tell sudo not to ask for password...
Run visudo, it is a command recommended for editing sudoers list...visudo
Or if you are an expert, then directly edit the file /etc/sudoersvi /etc/sudoers
Add this line to the end of the file (this should be the LAST line!!!)...username ALL=(ALL) NOPASSWD: ALL
where username is your Ubuntu username.
This works for almost all distributions of Linux


3 comments:
Nice tip, thanks.
And to prevent sudo to remember your password
http://unstableme.blogspot.com/2009/05/prevent-linux-from-remembering-sudo.html
As you probably know it's there for a good reason. Removing sudo takes away a massive part of the security design of Ubuntu which is good when enforced.
Read more about it at https://help.ubuntu.com/community/RootSudo#Remove%20Password%20Prompt%20For%20sudo
Don't get me wrong its a good tip, and useful, but it isn't recommended.
@Gibbs
I agree completely... this was meant for those who know what they are doing...
Post a Comment