Set a password, yet it logs in without one

My account is an administrator; I'm using Ubuntu 14.04LTS.

I've set a password and set automatic login to OFF, yet when I wake up from suspension or reboot if I just press Enter or type in anything then it logs me in.

How should I proceed?


Easy:

  • Click the gear icon in the top-right corner of your screen:

    Gear icon

  • Click System Settings, then Brightness & Lock:

    Brightness&Lock screen

  • Click the Lock switch until it goes into the On position and ensure the Require my password when waking from suspend is ticked.

Done! ;-)


If that doesn't work:

Create a new user on your system and see whether that user does work. If that's the case (in the below example we'll use steam-gamer and steam-gamer2), just do the following:

  1. Open the file manager

  2. Browse to the /home/steam-gamer directory

  3. Copy (don't move!) all the files from Downloads to /home/steam-gamer2/Downloads

  4. Check you did a good job.

  5. Now delete /home/steam-gamer/Downloads

  6. Go back to step 3 and repeat for Documents, Videos, ...

  7. After a couple of days to allow you to ensure you didn't forget to copy anything, just delete steam-gamer together with it's home directory by issuing the following command:

    sudo deluser steam-gamer --remove-home
    

I like using the terminal:

  1. Enable Screen Lock

    gsettings set org.gnome.desktop.screensaver lock-enabled true
    
  2. Enable Lock on Suspend

    gsettings set org.gnome.desktop.screensaver ubuntu-lock-on-suspend true
    

To disable, use false instead of true.

;-)