Ubuntu enters the correct account password but then jumps back to the login interface solution after landing

Source: Internet
Author: User
Tags command line

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/

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.