Tell me more ×
Ask Ubuntu is a question and answer site for Ubuntu users and developers. It's 100% free, no registration required.

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

share|improve this question
FYI, If you are using home folder encryption, you can't enable auto login. – Saeid Zebardast Mar 30 at 8:37

4 Answers

up vote 21 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

share|improve this answer

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.

share|improve this answer

You can easily do this with lightdm-set-defaults if you'd rather not edit lightdm.conf manually:

sudo /usr/lib/lightdm/lightdm-set-defaults --autologin username

It will not set the autologin timeout, but the default for that is 0 in the code anyway, so you don't need to set it.

share|improve this answer

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

That should do the work.

share|improve this answer

Your Answer

 
discard

By posting your answer, you agree to the privacy policy and terms of service.

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