Ask Ubuntu is a question and answer site for Ubuntu users and developers. Join them; it only takes a minute:

Sign up
Here's how it works:
  1. Anybody can ask a question
  2. Anybody can answer
  3. The best answers are voted up and rise to the top

Is there a permanent fix for the looping login problem in LightDM?

I recently installed Ubuntu 12.04 64-bit. LightDM won't work even though I haven't changed any options (background, etc.). It just throws another login screen at me if I log in.

So I did the stuff you're supposed to. I reconfigured gdm from the terminal and used that to log in, and have been using gdm for ~3 months now. The thing is, I want LightDM back so I can change it to a desktop background I made. (I have no idea about customising GDM and really don't care.)

share|improve this question
Is there any chance that tightvncserver package is installed? – komputes Jul 13 '12 at 23:31
I believe so, I have "X11VNC Server" with a TightVNC option enabled. – WindowsEscapist Jul 14 '12 at 15:51
After re-install, problem is mysteriously gone - however, I prefer MDM after all! – WindowsEscapist Oct 16 '12 at 13:15
up vote 1 down vote accepted

Boot into recovery mode, selected "network" then "root" and run the following command:

# chown -R your_username:your_username /home/your_username

Upon rebooting, access to desktop should be reestablished.

share|improve this answer
komputes answer fixed the problem for me. More specific: the .Xauthority file in my home directory had root ownership, after changing the ownership to <your_username> the login worked again chown -R your_username:your_username /home/your_username/.Xauthority @komputes: sorry but I cannot upvote and comment due to not enough reputation – Peter Prettenhofer Nov 22 '12 at 8:08

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.