Somehow, while playing around with LightDM and Webkit Greeter, the ownership of the .Xauthority
file in my home dir was given to the root user and I couldn't login because I hadn't the privilegues to lock the file.
I was able to regain ownership of the file and I could login again. (After several hours of reinstalling LightDM and it's greeters)
So now everything's working fine again. But I'd like to know how this happened. Is this a bug in LightDM or Webkit Greeter or something else?
sudo startx
, what worked. After changing the ownership of the file I could login again. So did starting X as root just fix the original problem? – s3lph Mar 20 '14 at 14:58.Xsession
and so could log in. You then changed the ownership which allowed your user to log in again. Next time, just delete the file, as I said, it is recreated automatically on login, no point in "fixing" its permissions. – terdon Mar 20 '14 at 15:02.Xauthority
file is basically a magic number used to identify the owner of an X session so that other people can't hijack it. If you are running an X session and I am logged in to the same machine, I won't be able to access your X session unless I am the owner of the.Xauthority
file. It is created whenever you log in unless one exists. So yes, changing the permissions to your user will fix it but so will simply deleting it. – terdon Mar 20 '14 at 15:08