How to get Ubuntu to ask for my password at login screen again?
Solution 1
Well I found what was wrong. As I made clear, I had a password. Terminal asked for a password when I attempted a sudo
command. Automatic login was already off, but Ubuntu just didn't ask for password even if it prompted for choosing the user at login screen. I could just click on my username and it will log me in without a password.
I was placed in "no login password" group. I did this command:
sudo gpasswd -d myusername nopasswdlogin
And I was removed from this group. Now my account asks for password...
Solution 2
Start by going into System Settings, Then into User Accounts and Click Unlock in the top right corner ( you will be prompted for your user's/root password).
Then select your user from the list on the left of the window then toggle "Automatic Login" to 'off' , when you are done , be sure to re-click Lock in the top right corner
Solution 3
I had the same issue under Xubuntu 16.04 and the solution for me was inspired by this answer.
I had to
sudo nano -w /etc/lightdm/lightdm.conf
and then remove the last two lines from
[Seat:*]
autologin-guest=false
autologin-user=gord
autologin-user-timeout=0
leaving just
[Seat:*]
autologin-guest=false
Solution 4
System -> Administration -> Login Screen
and then tick
show the screen who will login
Related videos on Youtube
Abhimanyu
Updated on September 18, 2022Comments
-
Abhimanyu over 1 year
I used to have a password prompt but then I, from somewhere in User Accounts, unchecked "Require a password for login." Now, I want Ubuntu to prompt for a password again at login screen, mainly because I have to manually unlock the login keyring whenever I access Dash or other services, which is a pain at best.
I also searched another question, namely How do I get Ubuntu to ask me for a password at login again?. It was of no help because the OP's question is "I have a password but Ubuntu doesn't ask for it."
Also, the two answers provided there don't solve my problem at all. They discuss completely other things.
Is there no simple mechanism? Because intuitively, if there's a checkbox option to bypass password requirement, there should be an equally hassle-free facility to again require the password.
-
MuffinStateWide over 9 yearsWhat desktop environment are you using?
-
Abhimanyu over 9 yearsI'm using Unity.
-
-
Abhimanyu over 9 yearsWhat do you mean by System? System Settings? There's nothing like Administration in System Settings...
-
Abhimanyu over 9 yearsI have enabled automatic login. Now whenever I boot Ubuntu, I'm logged in automatically (duh). But that's not what I want! I want precisely the opposite thing: being asked for a password . . .
-
MuffinStateWide about 9 yearsif you want the password prompt to log in , then turn automatic login off
-
Abhimanyu about 9 years. . . Automatic login was off at the time of posting this question . . . You told me to turn it on and now you're telling me to turn it off . . . What's the point?
-
Sohel0415 about 6 yearsnice one, worked for me, +1 :)