12

I installed Ubuntu 14.04 (dual boot with Win 7) and it was working fine. But suddenly one fine day I can't login to my user account, when I log it just flashes and then it goes back to the login screen. But the odd thing is that I can log with the guest account.

I have 2 accounts one owner account/user account and another one created for the installation of Oracle. Only the guest account can login.

From the login screen, I have pressed Ctrl+Alt+F1 to get to a prompt, and login but the same thing happened there too, I entered the correct username and credentials but it flashed and goes back to the login screen.

Abhishek
  • 221
  • 1
  • 3
  • 6

3 Answers3

13

This happened to me a couple of times too, this is probably because there is little space on your machine or an issue with LightDM or Xauthority but most probably xauthority. Here is what I did;

I simultaneously pressed Ctrl+Alt+F1, Login with your user name and password, and enter following command:

sudo mv .Xauthority .XauthorityBak

then

sudo reboot

After that try again.

αғsнιη
  • 36,350
1

I was having the same problem. I was installing some software to do go development, but I didn't do anything (that I know of) that would have modified permissions of the home directory (the problem previously reported).

I typed the Ctl-Alt-F1 and got the terminal login. I tried fixing the permissions on the home directory, but that didn't fix anything.

Then I recalled adding a path command to the .profile

I removed all my changes to the .profile, and now I am fixed.

belacqua
  • 23,540
0

Same issue happened to me. I was able to login as myself after Ctrl+Alt+F1. .xsession-errors pointed to an error in my .bashrc. After I removed the offending line from my .bashrc, I was able to login through the graphical environment.

koral
  • 1