In spite of setting auto-login in the Xubuntu settings (XFCE/System/Users and Groups) I have to login each time when I start up the computer. How can this be changed?


This worked for me, type in a terminal:

sudo nano /usr/share/lightdm/lightdm.conf.d/60-xubuntu.conf


sudo mousepad  /usr/share/lightdm/lightdm.conf.d/60-xubuntu.conf

(depending which text editor you want to use)

(in previous Xubuntu versions it was located in /etc/lightdm/lightdm.conf.d/10-xubuntu.conf)

Change from:




To remove password on resume, right-click the system tray power icon then Preferences. This brings up the XFCE power manager (Alternatively you can navigate to XFCE/Settings/Settings Manager/Power Manager). Click Extended in the left pane. Uncheck Lock screen when going for suspend/hibernate.

The last place is XFCE/System/Users and Groups. If it's set "Password: Asked on login" you can change that but it's really not necessary and this did not work for me.

Source: Ubuntu Forum, SuperUser

  • Mitch's answer down here was what I've tried, but it didn't work. This trick did, thanks! – mTorres Dec 5 '15 at 10:40
  • 7
    this configuration can be found @ /usr/share/lightdm/lightdm.conf.d/60-xubuntu.conf today. – Blauhirn Mar 15 '17 at 15:21

Click on Settings --> Users and Groups

enter image description here

Next to Password, click on Change

enter image description here

Click on Don't ask for password on login

enter image description here

  • Thanks a lot for the detailed instructions. Somehow this does not work for me. I checked/unchecked and restarted the system several times, but the login screen would still appear. The solution with editing the 10-xubuntu.conf file worked, though. – Filbuntu Sep 29 '14 at 17:41
  • 10
    This only removes the need to type a password - it does not enable automatic login. – Enigma Jul 14 '16 at 15:33

Things appear to have changed a bit since the accepted answer was written. Under Xubuntu 16.04 the settings have moved to


and they look like this

  • on xubuntu-installed-lightdm on 18.04, the file /etc/lightdm/lightdm.conf does not exist, but if you just copypaste the code to /etc/lightdm/lightdm.conf.d/autologin.conf (or call it whatever you want .conf), that worked for me :) – hanshenrik Sep 14 '18 at 7:25
  • Or just create the file /etc/lightdm/lightdm.conf – edwardmlyte Oct 5 '18 at 8:53

Your Answer

By clicking "Post Your Answer", you acknowledge that you have read our updated terms of service, privacy policy and cookie policy, and that your continued use of the website is subject to these policies.

Not the answer you're looking for? Browse other questions tagged or ask your own question.