Wednesday, July 4, 2012

Ubuntu not logging in after username / password screen

Yesterday, when I started my Ubuntu, I got a login screen. After typing correct password, I hit enter. To my surprise, again the same login screen returned. I thought that I many have mistyped my password and so reentered it. Again the same screen returned. Then tried to login to Guest account and my attempt was successful.

Then, I've googled it and found the solution which is as follows:

  1. Goto root shell prompt by pressing ctrl+alt+f1.
  2. type username password when asked.
  3. Delete the hidden file named Xauthority by typing the below command. 
  4.      rm ~/.Xauthority     
  5. That worked for me. 






If you enjoyed this post, make sure you subscribe to my RSS feed! Comments are encouraged