phenomenon : After entering the password in the Ubuntu login interface, a black screen flashes and a check battery state is present, and then jumps to the login screen .
cause : In the home directory. The xauthority file owner becomes root and cannot be taken when the user logs in. Xauthority file.
Description: Xauthority, is a startx script record file. Xserver start, read the file ~/. Xauthority, read in the record corresponding to its display. When a client program that needs to be displayed starts the call Xopendisplay () also reads this file and sends the found magic code to Xserver. When Xserver verifies that the magic code is correct, it agrees to connect. Observing the StartX script also sees that every time StartX runs, a new record is added to ~/with the add command that Xauth was used before calling Xinit. Xauthority, used for this run X use authentication
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 have not verified)
After booting in the login screen press SHIFT + CTRL + F1 into the TTY command line terminal login after entering: (my user name is HP, so chown followed by hp:hp if the other user name modified to the corresponding name can be)
$ cd ~
$ sudo chown hp:hp. Xauthority
Then type again:
Ls. Xauthority-l
After success, the following is displayed:
-RW-------1 hp 80 January 27 10:41. Xauthority
At this point the owner has become a user. Press SHIFT + CTRL + F7 to switch back to the graphical login screen to login.
Reference Links:
http://blog.csdn.net/misiter/article/details/7572288
http://blog.csdn.net/lbo4031/article/details/8509495
Ubuntu Input Password login and then jump back to the login screen