Enter a password to log on to Ubuntu and jump back to the logon page.

Source: Internet
Author: User

Enter a password to log on to Ubuntu and jump back to the logon page.

Symptom: after entering the password on the Ubuntu login interface, the black screen will pop up and text such as check battery state will pop up again.
Cause: the. Xauthority file owner in the main directory is changed to root, so that the. Xauthority file cannot be obtained when users log on.
Note: Xauthority is a startx script record file. When Xserver is started, read the file ~ /. Xauthority. Read the corresponding display record. When a client program is started to call XOpenDisplay (), it also reads the file and sends the magic code to Xserver. When Xserver verifies that this magic code is correct, it will agree to the connection. Observe the startx script and you can see that every time startx runs, a new record is added to ~ by using the xauth add command before xinit is called ~ /. Xauthority, used to run X authentication this time
Solution: Change the. Xauthority owner to a logon user (or simply delete. Xauthority ).

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.