My computer running Ubuntu 18.04 is stuck in a login loop. I am using lightdm as my display manager, but trying to switch to gdm3 didn't fix the problem (I was still stuck in a login loop).
I have tried to follow the fixes found here to fix it, but after running ls -la there is no .Xauthority file in my home directory. I think this is related to my login loop problem, but I am not sure how to create a new .Xauthority file?
Update: I switched to gdm3 and can now login with Unity for a few seconds. The desktop loads but after a minute I am in a login loop again.
.Xauthorityfile should be created when you successfully start an X-based desktop session. AFAIK not having one initially is not a problem in itself. I suggest you look for an.xsession-errorsfile (e.g.tail ~/.xsession-errors) to see if it throws additional light on the real issue. – steeldriver Aug 20 '18 at 17:10.xsession-errorsfolder in the home folder either. Output fromtail ~/.xsession-errorsistail: cannot open '/home/fdrc/.xsession-errors' for reading: No such file or directory– Kaszt Aug 20 '18 at 17:13xauthreturnsUsing authority file /run/user/1000/gdm/Xauthority– Vijay Mar 23 '19 at 12:54