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 Jason, so chown back with the Jason:jason if the other user name modified to the corresponding name can be)
cdsudo chown jason:jason .Xauthority
And then execute
Ls. Xauthority-l
You can see that the owner of the Xauthority has changed to a user.
At this point the owner has become a user. Press SHIFT + CTRL + F7 to switch back to the graphical login screen to login.
Copyright NOTICE: This article for Bo Master original article, without Bo Master permission not reproduced.
Ubuntu Input Password login and then jump back to the login screen