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 have a system with two accounts. The primary (and administrator) account automatically logs in at boot time and is used 95% of the time. On occasion I need to logout and switch to a secondary account dedicated to part time work which is set to log in without a password (just click login). When I log out of that account I would like to log back into the other without a password but I don't see any way to set that as an option in the "Users and Accounts".

I know how to get disable the password when the screen goes to sleep and I want to keep the password intact because it seems like it is necessary for administrative purposes. Having something that could easily be reversed would also be a plus (in other words just re-enable the password for login).

This is marked as a duplicate, but that question does not answer my specifics and the methods referenced do not show up in my stock 13.04 install. I have placed an answer below that did fit the bill.

share|improve this question
Different question. I want to maintain the password just not have to enter it at the login screen. I actually used an answer that was deleted and it worked fine which I may repost unless there is a really good reason not to?? gpasswd -a username nopasswdlogin – Dennis May 29 '13 at 17:25
Take a look at my answer Here. – Mitch May 29 '13 at 19:02
@Mitch: That appears (am I mistaken?) to remove the password which I don't want to do, and only have one admin account. You have much more knowledge than I do in such matters so I'll ask, the gpasswd method seems to work fine. Is there a danger involved that I don't know about? – Dennis May 29 '13 at 19:58
None that I can see. – Mitch May 29 '13 at 20:09
up vote 3 down vote accepted

Ok this is what I came up with. Logins are without password entry, just click the "Log In" button. Password is preserved and works fine whenever prompted. I haven't tried to reverse it but can't see any reason that wouldn't work.

sudo gpasswd -a <USERNAME> nopasswdlogin

In all fairness this answer was posted earlier but deleted. I don't remember by who but I'm glad I saw it because it is spot on.

To re-enable the password query it would be

sudo gpasswd -d <USERNAME> nopasswdlogin

A little more information can be found at

share|improve this answer

So you wanted to remove the password of your primary account? I don't know if this will work but try this.

Open your terminal and type this:

sudo passwd -d *username*
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.