I am unable to login through GUI as a user but I am able to login via terminal.
This occurred after I installed 2 steps authenticator of Google using apt-get install
command. I followed these steps:
sudo apt-get install libpam-google-authenticator
Edited
/etc/pam.d/sshd
and add the following line to the file:auth required pam_google_authenticator.so
Edited
/etc/ssh/sshd_config
and changedChallengeResponseAuthentication
toyes
I restarted the ssh service.
root@george:~# ls -l /home/george/.Xauthority -rw------- 1 root root 125 Jan 31 19:35 /home/george/.Xauthority
ls -l /home/user/.Xauthority
.. change it to your username instead of user. Please post the output of that line by editing your question.