ubuntu cycle login

The ubuntu12.04 administrator account cannot log in to the desktop, only the guest session can log in

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

ubuntu cycle login
Ubuntu ssh-keygen remote login
Ubuntu configure SecureCRT login
Ubuntu software
Putty remote login VMware virtual machine Linux (Ubuntu12.04)
Note record | Ubuntu16.04 set default root user login
Ubuntu 17.10 will replace LightDM login manager with GDM
Simple and clean install remote login for ubuntu18
Tencent Cloud ubuntu system changed to root login