PDA

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



3svb
February 14th, 2012, 10:14 AM
All,

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

Case:
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 !

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

http://ubuntu-tweak.com/





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.

http://cloud.addictivetips.com/wp-content/uploads/2009/06/login-window-alt-f2.jpg

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.

http://cloud.addictivetips.com/wp-content/uploads/2009/06/security-tab.jpg

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!

Source:
http://www.addictivetips.com/ubuntu-linux-tips/how-to-disable-ubuntu-user-login-window/



Anyone tried this already ?

Krytarik
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"

Regards.

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

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

https://bugs.launchpad.net/ubuntu/+source/lightdm/+bug/902852

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

https://bugs.launchpad.net/ubuntu/+source/lightdm/+bug/902852
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". ;-)