Sign up ×
Ask Ubuntu is a question and answer site for Ubuntu users and developers. It's 100% free.

I am trying to get my installation of 10.04 to automatically log me in at start up. I tried to apply this method but after creating the script there, I was unable to edit the /etc/inittab file as there is not one present. Apparently this is because Ubuntu does not use this method and instead uses 'upstart'. Is there a similar way to auto login with Ubuntu??

share|improve this question
If you are on LightDM then here –  atenz Jul 3 '12 at 10:16

1 Answer 1

up vote 1 down vote accepted

According to the fine manual, you need to edit /etc/gdm/custom.conf in 10.04. If you can live with a GUI solution, then:

  1. Load the Gnome Administration utility by clicking on System -> Administration -> Login Screen Settings
  2. Unlock the window by hitting the unlock button (you will be asked the administrator password)
  3. Enable the checkbox for Log in as UserName automatically (Select your User Name from the drop-down list of users)
share|improve this answer
That works perfectly. Many thanks! –  mathematician1975 Jul 3 '12 at 11:52
how do i do this via script, so I can automate this, thx –  Dhana Krishnasamy Jul 22 at 21:28
@DhanaKrishnasamy: You cannot have a script log in a user, as scripts are genreally run as your user, which hasn't come up yet as you are not logged in! –  dotancohen Jul 23 at 9:06
This is what I wanted (non gui approach) ->… –  Dhana Krishnasamy Jul 23 at 9:10
@DhanaKrishnasamy: I see. You link explains how to have an application start on login, not how to have the system log in a specific user. This question and answer deal with the later. I'm glad that you found what you are looking for, though! –  dotancohen Jul 23 at 11:29

Your Answer


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.