I want user foo to auto-login using LightDM (which has been used by Ubuntu since version 11.10). How would I do that?

link|improve this question

feedback

4 Answers

up vote 15 down vote accepted

You can do this without editing configuration files: go to System Settings > User accounts, click "Unlock" and enter your password, then click the button next to "Automatic login":

'enter image description here

link|improve this answer
The lock/unlock button doesn't exist on xubuntu, and the second tips given by htorque doens't work. At this moment, for me and my xubuntu, autologin is not possible. – user25238 Sep 19 '11 at 13:41
feedback

An alternative to Alin's answer is to create a file /etc/lightdm/lightdm.conf and add the following content:

[SeatDefaults]
autologin-user=<YOUR USER>
autologin-user-timeout=0
user-session=ubuntu
greeter-session=unity-greeter

Next time you start, auto-login should work like expected.

link|improve this answer
feedback

Search for "User Accounts" application. Select the account you want to autologin Toggle the Automatic Login switch to On

That should do the work.

link|improve this answer
feedback

Thanks for the tip!

In Lubuntu 11.10 with LXDE, it turned out to be /etc/lxdm/default.conf. Commenting out the "autologin=" line allowed me to turn it off. THAT was what I needed to do, as I accidentally turned autologin on when I installed.

73 DE N4RPS Rob

link|improve this answer
feedback

Your Answer

 
or
required, but never shown

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