Skip to content
Unix Server Solutions
  • Server
  • Apple
  • Database
  • Ubuntu
  • Linux

Ubuntu – No password asked at login screen just start session button with LightDM

lightdmloginpassword

When I first installed Ubuntu I choose NOT to ask me for a password at login. That was ok for that moment cause it didn't ask me any password at login. But now I want to be asked for a login password. I changed the settings to Not start automatically but it doesn't work. My Ubuntu doesn't ask me password at login. What should I do now?

In the automatic login box (in the user accounts setting window) I have it checked to off (0 or Off), the thing is that my LightDM login screen gives me only a "Start Session" button below my user name, instead of the usual password field.

Best Answer

Thanks to user sisco311 from ubuntuforums.org for this answer.

I didn't try it but the link posted above shows a command line:

sudo gpasswd -d $USER nopasswdlogin 

that should work. I did it using the GUI.

The thing is that my user was in the nopasswdlogin group. I had to install the gnome-system-tools which has the GUI to manage users and groups. Then I ran the users-groups manager and change my user to NOT be part of the nopasswdlogin group. Problem Solved. I do have a remaining question: why or how did my user got into that group?

Related Solutions

Ubuntu – How to disable automatic login in LightDM
gksudo gedit /etc/lightdm/lightdm.conf 

It displays some text as follows:

[SeatDefaults]  
greeter-session=unity-greeter  
user-session=ubuntu  
autologin-user=username

Solution

  1. This <username> would be your particular user name that is automatically logged in with or without password. Delete this username and type in the administrative username or leave it blank.
  2. Shut down the system. It will go back to the login selection screen. Just power down the system and put it on again.
Ubuntu – Login with LightDM fails

Inspired by https://askubuntu.com/a/504402/458355 I created /etc/lightdm/lightdm.conf with the following content:

[SeatDefaults]
user-session=plasma-kde

Now login works.

For the record: The file ~/.dmrc containes the line

Session=kde-plasma-kf5

However, changing this line to Session=plasma was ignored by lightdm.

Related Question
  • Ubuntu – How to disable automatic login in LightDM
  • Ubuntu – Login with LightDM fails