2

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.

Jorge Castro
  • 73,717
Dennis
  • 2,513

2 Answers2

3

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 http://www.tuxgarage.com/2012/07/disable-enable-passwordless-login.html

Dennis
  • 2,513
0

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*
Jorge Castro
  • 73,717