Possible Duplicate:
Login screen won’t accept my password

User switching wasn't working on my 12.04 LTS desktop (just dropped me to TTY8 with a blinking cursor) so I tried to manually start a second X session by logging in to TTY6 and running startx -- :1. This didn't work either, and my machine locked up.

Now when I try to log in as the second user from LightDM, X instantly crashes and I'm thrown back to the login screen. Other accounts on the machine work fine, and it happens for every desktop environment.

I've had a poke around in my home directory, but I can't see anything obvious to change/delete to get it working again. Can anyone advise please?

marked as duplicate by Jorge Castro, Mitch, Takkat, Ringtail, belacqua Oct 21 '12 at 18:06

This question has been asked before and already has an answer. If those answers do not fully address your question, please ask a new question.


It turns out that the file ~/.Xauthority for the problematic user had changed owership, and was owned by root.

sudo chown user:user ~/.Xauthority changed the ownership back to the original user. After that, I could log in without a problem.

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