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

When i log into ubuntu the screen goes black as it were logging in but then i am back in the login screen. I can login as guest (i should disable that). I can login via ssh. The last time i had no issues was when i used it this morning and the only unusual thing i did was shutdown via ssh (i think i wrote shutdown now) which had ubuntu hang after showing the shuting down screen for many seconds (i kind of assumed it shut down properly since the UI froze as well and it usually takes less time).

Whats the easiest way to fix this w/o reinstalling? Its a brand new install and so it probably takes me 10mins to recopy/setup everything so i may just do that

-edit- using 12.04

share|improve this question
Take a look at the answers posted here: – green Nov 11 '12 at 6:01
possible duplicate of Ubuntu gets stuck in a Login Loop – Eric Carvalho Dec 29 '14 at 14:18

1 Answer 1

up vote 2 down vote accepted

Try removing the file ~/.Xauthority.

To do that,

  • Press Ctrl+Alt+F1 at the login page.

  • Enter your username and password, and you'd be able to login using tty.

  • Now, delete the file:

sudo rm ~/.Xauthority
share|improve this answer
Excellent, that solved it perfectly (at least it seems to atm. i log in and see no problems) – acidzombie24 Nov 11 '12 at 7:12
glad it worked! – green Nov 11 '12 at 14:52

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.