Friday, April 19, 2024
 Popular · Latest · Hot · Upcoming
3
rated 0 times [  3] [ 0]  / answers: 1 / hits: 111201  / 3 Years ago, wed, august 25, 2021, 1:30:03

I was playing around with "User accounts" and somehow set automatic login. Now, when I start my PC, it just has one button named as "login". Clicking that button, directly logs me in to my PC.



There is no music or no asking for password while logging in. As a side effect, it asks me separately for keyring password



How to disable auto login and make login/keyring password unified again like before?



NOTE: Attempting to disable Automatic Login from System Settings > User Accounts does not work.



This is the content of my /etc/lightdm/lightdm.conf (where I have commented the autologin for my username mgandhi):



[SeatDefaults]
greeter-session=unity-greeter
user-session=ubuntu
#autologin-user=mgandhi

More From » lightdm

 Answers
1

Ok, finally the problem is solved. I got an email from an occasional stack-exchange visitor Mr. Rafter. Following is the way:




  • Run sudo grep nopasswd /etc/*

  • This will display at least 2 lines:



    /etc/group:nopasswdlogin:x:112:`<login name>`   
    /etc/gshadow:nopasswdlogin:!::`<login name>`

  • Edit those files with sudo and remove only <login name> from those lines and save.


  • Go to "User Accounts" and disable the automatic login

  • Restart the computer and now it should ask for the password again!


[#40236] Thursday, August 26, 2021, 3 Years  [reply] [flag answer]
Only authorized users can answer the question. Please sign in first, or register a free account.
ormlai

Total Points: 292
Total Questions: 106
Total Answers: 115

Location: Cape Verde
Member since Fri, Sep 16, 2022
2 Years ago
ormlai questions
Wed, Sep 28, 22, 00:17, 2 Years ago
Sun, Aug 7, 22, 22:05, 2 Years ago
Wed, Jun 16, 21, 03:50, 3 Years ago
Sun, Feb 6, 22, 09:11, 2 Years ago
Mon, Jul 12, 21, 10:00, 3 Years ago
;