Friday, May 3, 2024
 Popular · Latest · Hot · Upcoming
3
rated 0 times [  3] [ 0]  / answers: 1 / hits: 564  / 1 Year ago, fri, march 3, 2023, 1:45:08

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.


More From » login

 Answers
6

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


[#30981] Friday, March 3, 2023, 1 Year  [reply] [flag answer]
Only authorized users can answer the question. Please sign in first, or register a free account.
pardsea

Total Points: 290
Total Questions: 115
Total Answers: 98

Location: Svalbard and Jan Mayen
Member since Sun, Sep 25, 2022
2 Years ago
;