Can't login to ubuntu GUI
I reinstalled the graphics card driver for my desktop today after nvidia official driver fails to meet my expectation. When the familiar login screen showed up, I typed my password and the password was incorrect. I did not change it for quite a while. That's weird.
Since there are several public user account on this machine. I tried to login to their account and it worked. I wondered what happened before I found the solution.
On any other account or ssh via remote access, in a terminal, type:
su your_user_name sudo chmod 777 ~/.Xauthority
Now hopefully you can access your GUI desktop!












