After I log in to my user account on Ubuntu 13.04, I get automatically logged out after 1 second of black screen. This happens only with 1 specific user, and I can log in to another account fine.
What could have gone wrong? In which log files should I find my answer?
I installed a VNC server and turned on desktop sharing, and last time I could log in – maybe that is an issue. How can I disable it without GUI?
Best Answer
I don't know if it would be exactly the same case, but this happened to me because somehow I corrupted the .Xautority file in my home. I think it's something related with remote access to the X server.
Log into a tty (Control+Alt+F6) and after typing your username and password:
The .Xauthority file is in /home/, which is where the terminal's default working path also usually is. If you use a tty to sign in as one user to delete another's .Xauthority file, make sure you've
cd
'd to the right directory first.Then restart lightdm with:
The sistem will recreate the .Xautority file.