View Full Version : [ubuntu] Automatic login after x seconds for user 1

February 14th, 2012, 10:14 AM

I have a multi-user system (11.10).
Is it possible to trigger an automatic login after x amount of seconds ?

I want to be able to intervene the login process so that user 2 is able to login before the system loggs in user 1.

Thanks in advance !

February 15th, 2012, 09:45 AM
Damn! This does not apply to 10.04 and up ...
Maybe this can do the trick ?


Maybe I found a solution.
When I get home, I will give it a try and let you guys know.

You can also load it by pressing Alt + F2 and typing gksu /usr/sbin/gdmsetup in Run Application box.


This will open the Login Window Preferences window. Now, to enable auto login, go to Security tab and check Enable Automatic Login and enter user name for your system. You can also set delay in auto login by checking Enable Timed Login and selecting time in seconds. If you enable it, your system will wait for specified number of second before logging you.


Click Close and reboot your system. Now you won’t see the login windows anymore and won’t need to type the password during every startup. Enabling automatic login is not recommended because it will lead to higher security risk. Enjoy!


Anyone tried this already ?

February 16th, 2012, 12:37 AM
I presume that you are using the default display manager of Oneiric 11.10, LightDM. Find/add this key to the "[SeatDefaults]" section of your "/etc/lightdm/lightdm.conf" and set the timeout to your liking:

autologin-user-timeout = Number of seconds to wait before loading default userSource: "/usr/share/doc/lightdm/lightdm.conf"


February 17th, 2012, 09:59 PM
Thx Krytarik !

But I'm still not able to choose an alternative profile.
Bug is confirmed !


February 17th, 2012, 10:28 PM
Bug is confirmed !

Make sure to both enlist yourself as 'affected by this bug' and subscribe to it, in order to both get notified about changes and raise the "bug heat". ;-)