When I start up Ubuntu, I see the login screen. I have my account and a guest account as the choices. When I choose my account by clicking on it, I automatically get logged in with out being required to enter my password.
I want to password protect my account so when someone clicks my account, they have to enter the proper password to get in. I have tried to do this by going to
Settings > User Accounts > My Account
and pressing the Unlock button in the top right corner of the window. I get the Authentication is required to change user data pop up and I enter my password to get access. This is what i see. (I've blacked out my account name)
As you can see Automatic Login is set to OFF but like I said, when I click my account from the login screen I get automatically logged in with out requiring a password. I guess that is not what they mean by automatic login.
UPDATE 1: The user Rinzwind explained to me how Ubuntu On/Off switches work so I made sure that it was set it to Off but when I restart, I get automatically logged in. Then when I open my user account and look at Automatic Login, it is set to On again. Something, maybe a setting in a script, is resetting Automatic Login back to On. Any ideas on why this is happening?
UPDATE 2: The user Rinzwind suggested I see if anything changes in the /etc/lightdm/lightdm.conf
when I switch Automatic Login -> On and Off. I did that and did see a change.
When I set Automatic Login to Off
the lightdm.conf
file looks like this:
[SeatDefaults]
autologin-guest=false
autologin-user=max
autologin-user-timeout=0
autologin-session=lightdm-autologin
user-session=ubuntu
greeter-session=unity-greeter
but when I set Automatic Login to On
the lightdm.conf
file looks like this:
[SeatDefaults]
autologin-guest=false
autologin-user=
autologin-user-timeout=0
autologin-session=lightdm-autologin
user-session=ubuntu
greeter-session=unity-greeter
max@siddhion:~$
So as you can see the difference is that when Automatic Login is On autologin-user
equals nothing but, when Off, autologin-user
equals max
which is me. Not sure what difference this makes since even when I set it to Off, I still get logged in automatically. Any ideas?
NOTE 1 When I suspend my laptop and return to it again, I am presented with a prompt to enter my password to access my account. So at least that is working. The problem I am having is when the laptop restarts.
NOTE 2 When my account loads up I always get a pop up saying I have to type in my password to unlock the keyring. Not sure if that is important here.