Linux x interface input password is correct, but unable to login system, command line interface can login

Source: Internet
Author: User

Method/Step
1 in the login screen that requires a password, press CTRL+ALT+F1 to enter the Tty1 terminal
2 Enter your own user directory, do not follow the online instructions CD ~, actually for cd/home/username/
3 with chmod instruction will. Xauthorty permissions pull up, restart
chmod 777. Xauthorty


Reason:

Suspicion is. Xauthorty permissions to get rid of, because chmod didn't look before the file permissions, so here can only guess


Related introduction

1, Xauthorty file Introduction (from the Internet, not personally verified)

StartX Startup scripts

Xserver start, read the file ~/. Xauthority, read 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 validates this magic After code is correct, you agree 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


Linux x interface input password is correct, but unable to login system, command line interface can login

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.