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):
gksudo gedit /etc/lightdm/lightdm.conf
It displays some text as follows:
I had the same problem and it was solved by the command:
sudo gpasswd -d USER nopasswdlogin
where you should change USER by your user name.
gksu gedit /etc/lightdm/lightdm.conf
You should see something similar to this:
Remove or put a # at the start of each line containing autologin and save/exit and reboot to test.
Go to your terminal and enter this:
It will ask you with your new Unix password and solved.
Then, later, you can go to your user account and change anything.
Disable Automatic Login
I am running 12.10 and I tried everything in this thread and nothing worked. Eventually I tried deleting suspicious lines in lightdm.conf and was successful:
Run gksu gedit /etc/lightdm/lightdm.conf
gksu gedit /etc/lightdm/lightdm.conf
I can't remember the exact line because I have since deleted it, but it's something like autologin-lightdm=true. Delete it.
Hope this works!
It's rare that @duffydack answer does not fit you... try this:
on a terminal do:
sudo vi /etc/gdm/custom.conf
sudo nano /etc/gdm/custom.conf
Your file should now look something like this:
edit AutomaticLoginEnable=true to AutomaticLoginEnable=false
that's other option.
Ok, finally the problem is solved. I got an email from an occasional stack-exchange visitor Mr. Rafter. Following is the way:
sudo grep nopasswd /etc/*
This will display at least 2 lines:
Edit those files with sudo and remove only <login name> from those lines and save.
Figured out an answer:
System Settings > User Accounts. Select your user and disable automatic login.
was playing around with "User accounts" and I made same mistake, I got in same hole.
You just set your system to no-password when "playing around".
That's why your system log in (auto or not) without asking for password, and this is the same reason keyring system asks for it (cause doesn't received from the system).
So, action jackson:
CLICK THE PASSWORD BOX (its a hidden button, oh devil UI)
this open a dialog box (!) where u probably hit the "login without password" option AND with automatic login option ON too (outside this dialog, on User Accounts screen). SO:...
When you tell the computer to log in without a password (ITS NOT the same as Automatic Login) he does exactly this , log in, without password. So password = nothing. Then keyring goes crazy. (aha!) So, choose the right option now:
Set a password now
and after doing all the entry password stuff, simple hit enter, set automatic login off, to feel again the pleasure of having a password, and if you want it on again, ok, turn it on, but dont log in without a password again. =D
I hope this helps you to solve your problem. Was a good lesson to me. Bad UI to Ubuntu -1 on this case.
Open the file /etc/group (vi /etc/group) and find the group 'nopasswdlogin'. you will see your user name in that group. comment out that line (inserting # before) or just delete the line.
This should do it.
My /etc/lightdm/lightdm.conf was basically empty:
It worked with:
I changed to gnome classic fallback, I auto-login but it defaults to unity 3d, how do I make auto-login default to gnome classic?
auto log-in gnome classic desktop :
sudo apt-get install gnome-session-fallback
sudo /usr/lib/lightdm/lightdm-set-defaults -s gnome-classic
Run the following in a gome-terminal:
If you want GNOME Classic with effects:
If you want GNOME Classic without effects:
sudo /usr/lib/lightdm/lightdm-set-defaults -s gnome-fallback