When logging in to the administrator account, after entering the password, the login interface has been looping
It took a lot of effort, one morning, and finally got it done, hahaha
ctrl+alt+f1, switch to tty1, enter the administrator account and password
sudo rm -r .Xauthority*
sudo reboot //reboot
ok
Unfortunately, I don’t understand why deleting .Xauthority* is just OK.
About .Xauthority: startx script file
When Xserver starts, read the file ~/.Xauthority, and read the record corresponding to its display. When a client program that needs to be displayed starts calling XOpenDisplay(), it also reads this file, and sends the found magic code to Xserver. When Xserver verifies this After the magic code is correct, agree to connect.
Observing the startx script, you can also see that every time startx runs, the add command of xauth is used before xinit is called to add a new record to ~/.Xauthority, which is used to run X this time to use authentication
Here are some articles that helped me a lot and share with you:
Recommended Posts