Incorrect Ubuntu password after running startx

Source: Internet
Author: User
Today, I typed startx in the command line and restarted the system. after entering the password, I jumped to the page and returned to the logon page. Enter the password repeatedly

Today, I typed startx in the command line and restarted the system. after entering the password, I jumped to the page and returned to the logon page. Keep entering the password in this loop and cannot enter the system.

Then I had to use my mobile phone to find a solution on the Internet.

The solution is as follows:

1. press Ctrl + Alt + F3 to log on to the console.

2, cd ~

3, rm-rf. Xaut *

4. press Ctrl + Alt + F7 to return to the logon page. enter the password to log on.

Why can't I get in?

A file generated when startx is executed on tty. The ubuntu login tool is lightdm. this login tool finds that there is a file in your Directory and it will be an endless loop, allowing you to enter your password without limit.

What is the stratx command used?

Startx is used to start X windows services. The principle of using it with caution in Ubuntu is still unclear. //??? 2014-05-03

The. Xauthority directory is automatically generated in the/home directory after running, resulting in the above problem.

Related Article

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.