Monday, April 29, 2024
 Popular · Latest · Hot · Upcoming
11
rated 0 times [  11] [ 0]  / answers: 1 / hits: 32732  / 3 Years ago, thu, august 5, 2021, 4:15:16

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?


More From » permissions

 Answers
2

Almost certainly not, no. You either started an X session as root (not sure how you managed that) or simply used touch or otherwise wrote .Xauthority with sudo. For more details, you'd have to explain what you were actually doing.



Next time, don't reinstall anything, just delete the ~/.Xauthority file, it will be recreated automatically next time you log in:



sudo rm ~/.Xauthority


Then log in normally.


[#26415] Thursday, August 5, 2021, 3 Years  [reply] [flag answer]
Only authorized users can answer the question. Please sign in first, or register a free account.
restlerfin

Total Points: 347
Total Questions: 112
Total Answers: 108

Location: Ukraine
Member since Wed, Dec 16, 2020
3 Years ago
;