Start the system, enter the correct account and password, click Login, Screen Flash, and then jump back to the login interface. Problem reason: Under the home directory. The xauthority file owner becomes root and cannot be taken when the user logs on. xauthority files.
Description: Xauthority, is the StartX script record file. When Xserver starts, read the file ~/. Xauthority, read the records corresponding to their display. When a client program that needs to be displayed starts the call Xopendisplay () also reads the file and sends the found magic code to Xserver. When Xserver verifies that the magic code is correct, it agrees to connect. The StartX script can also see that every time StartX runs, a new record is added to the ~/using the Xauth Add command before calling Xinit. Xauthority, used for this run X use certification
Workaround: We need to be. The owner of the xauthority to log in to the user (or simply delete the. Xauthority, this method is transferred from the Internet, I did not verify)
After the boot in the landing interface press SHIFT + CTRL + F1 into the TTY command line terminal login input: (my user name is HP, so chown behind with the HP:HP if the other user name modified to the corresponding name can)
$ cd ~
$ sudo chown hp:hp. Xauthority
Then enter again:
Ls. Xauthority-l
After the success, it appears as follows:
-RW-------1 HP 80 January 27 10:41. Xauthority
At this point the owner has become a user. Press SHIFT + CTRL + F7 switch back to the graphical landing interface.
See more highlights of this column: http://www.bianceng.cnhttp://www.bianceng.cn/OS/Linux/