Ask Ubuntu is a question and answer site for Ubuntu users and developers. Join them; it only takes a minute:

Sign up
Here's how it works:
  1. Anybody can ask a question
  2. Anybody can answer
  3. The best answers are voted up and rise to the top

I'm confident that I do not need a password for my computer. How do I remove passwords for things like when the screensaver activates and installing software?

share|improve this question
up vote 29 down vote accepted

While this statement is a general attitude that I dont agree with, in the spirit of answering your question, I'll continue without further biased objectification.

There are a few areas of the system that you can utilize to process this request. First being the "Screensaver Password" that you mention. Go to System > Preferences > Screensaver In there, you need to disable the checkbox titled "ALock screen when screensaver is active"

enter image description here

On the login screen you can set an auto-login to a user. System > Preferences > Login (this may be system > administration > login.. please verify as I'm not in-front of my Linux PC) you can then set the system to auto-login a given user.

enter image description here

However please note that after you have logged in, if you have stored passwords in your couchdb it will prompt you to enter your password to unlock the keyring so your wifi can auto connect (as an example)

Regarding your software installation password, there is no way to default this that I'm aware of, as sudo will ask you for a password. This security model is enabled so you have to think about what you're doing before you make system-wide changes such as installing software.

Please see: this link. it will help to explain why the current security model should be the default.

share|improve this answer
+1 for answering a question I'd not be able to answer. – Octavian Damiean Mar 11 '11 at 18:44
Thank you for the visuals Jorge – lazyPower Mar 11 '11 at 18:52
Thanks for detailed instructions. – DeaDEnD Mar 11 '11 at 19:45

"Nobody will ever compromise my computer." falls under the category of Famous Last Words. Reconsider.

That said: for the screensaver, go into the screensaver preferences and uncheck the option to ask for password. For administrative tasks, visudo and change yourname ALL=(ALL) ALL to yourname ALL=(ALL) NOPASSWD: ALL.

share|improve this answer

There's a multitude of reasons why having password protection on sudo actions, or login, but if you really need to not do this you can do it like this:

sudo visudo

Find the line with your username and change it to the following:


That should give you the results you require...

share|improve this answer

Simply follow the following command line steps for your PC not prompting for any password.

Edit the file

$ sudo visudo 

Find the line

$ %sudo ALL=(ALL) ALL

Change the line


Now the line should be look like

 # Allow members of group sudo to execute any command
   $ %sudo  ALL=(ALL) NOPASSWD: ALL

Save and exit(ctrl+x->type 'y'->enter)

Yes you got your way clear... Although this may help you.. Become the superuser by typing command

$ sudo su

It will not ask for any password while doing your sudo command stuff.

More simple way...

1.Go to gear icon on top right corner.

2.Go to system settings.

3.Go to user accounts,bottom right corner(depends on UI)

4.Click the button unlock,it will prompt for password.

5.Enter the password for particular user.

6.Slide the bar of Automatic login from OFF to ON.

7.Here you the lock button again.

Thanks..Hope it works.

share|improve this answer

Your Answer


By posting your answer, you agree to the privacy policy and terms of service.

Not the answer you're looking for? Browse other questions tagged or ask your own question.