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?


Type in a terminal:

sudo nano /etc/lightdm/lightdm.conf


sudo mousepad /etc/lightdm/lightdm.conf

(depending which text editor you want to use)

Add these lines to the file:


You could use e.g. file /etc/lightdm/lightdm.conf.d/autologin-xubuntu.conf, instead, but then you should make sure settings in another file in that directory or in file /etc/lightdm/lightdm.conf do not override it.


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 it, and thereafter, if you logout or switch user, you can get back without entering password.

Sources: lightdm/Read.me, Ubuntu Forum, SuperUser

| improve this answer | |
  • 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. – phil294 Mar 15 '17 at 15:21
  • @Blauhirn that is the system provided configuration; system administrators must not modify that. – jarno Sep 19 '19 at 10:14
  • 1
    @Blauhirn see the README – jarno Sep 19 '19 at 10:30

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

| improve this answer | |
  • 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
  • 15
    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

| improve this answer | |
  • 1
    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
  • 1
    Or just create the file /etc/lightdm/lightdm.conf – edwardmlyte Oct 5 '18 at 8:53

I'm using xubuntu with GDM so the config file is located below


Find out below lines then uncomment them and fill out your user name

# Enabling automatic login
  AutomaticLoginEnable = true
  AutomaticLogin = YourDesiredAutoLoginUserName
| improve this answer | |

Mine is a GUI answer to the Auto Login question.

The sequence is Settings/Details/Users.

To get into Settings, click in the top right corner of your screen. A small box will open with three icons across the bottom.

Settings is on the left, it resembles a mosquito but is actually a crossed wrench and screwdriver.

When Settings opens you might be anywhere in the system. Look at the top. If it doesn't say Settings, click on the Left Arrow (<) in the top left of the screen. That will take you to Settings. Details is at the bottom of the left hand column. Users is the third option down. To make any changes you need to Unlock the screen by clicking on the Unlock button in the top right corner, enter your password to enable changes. You can add Users, change the password, and turn Auto Login ON or Off.

| improve this answer | |

auto login is described here:

| improve this answer | |

Your Answer

By clicking “Post Your Answer”, you agree to our terms of service, privacy policy and cookie policy

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