Ubuntu quits at the login screen

Source: Internet
Author: User

phenomena: After entering the password in the Ubuntu login screen, a black screen flashes and a check battery state is present, and then the login screen is redirected.
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 HP80 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 quits at the login screen

Contact Us

The content source of this page is from Internet, which doesn't represent Alibaba Cloud's opinion; products and services mentioned on that page don't have any relationship with Alibaba Cloud. If the content of the page makes you feel confusing, please write us an email, we will handle the problem within 5 days after receiving your email.

If you find any instances of plagiarism from the community, please send an email to: info-contact@alibabacloud.com and provide relevant evidence. A staff member will contact you within 5 working days.

A Free Trial That Lets You Build Big!

Start building with 50+ products and up to 12 months usage for Elastic Compute Service

  • Sales Support

    1 on 1 presale consultation

  • After-Sales Support

    24/7 Technical Support 6 Free Tickets per Quarter Faster Response

  • Alibaba Cloud offers highly flexible support services tailored to meet your exact needs.