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

This question already has an answer here:

While updating 13.04 Raring Ringtail on a fresh installation my system froze. On reboot I am unable to log in on the graphical screen. CTRL-ALT-F2 takes me to the command line where the login works correctly. I then completed the "sudo passwd" process with positive results. On returning to the graphical screen I saw no change in accessing the account. I suspect something was corrupted during the crash. I'm too new at UBUNTU to know where to look, much less what to do in order to straighten out whatever was broken.

All advice, step by step instruction, etc. much appreciated. My fall back is to reinstall the OS from scratch as it's a new system. Which is more efficient, fix or reinstall? Thanks.

share|improve this question

marked as duplicate by bain, Mitch Jul 7 '14 at 7:37

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.

Please add some information on how exactly this 'unable to login' presents itself. Does it reject the password or accept the password, but then goes black for a second and dumps you back on the login screen? In the latter case, please reproduce the error, then switch to a terminal and add the contents of ~/.xsession-errors to your post. – drc Nov 27 '13 at 7:42

This sounds like an error I've encountered before - when logged in on the console, run the following command:

sudo rm ~/.Xauthority

This fixes an issue where, for some reason I haven't discovered yet, a file used for the graphical interface becomes owned by the root user, and other users are unable to edit it.

This means your graphical login fails and you cycle back to the login form, but do so without any errors being shown.

share|improve this answer

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