Ubuntu forgot login account and password

Source: Internet
Author: User

The author is still a beginner in many aspects. Interested in a lot of aspects, computer installed on the UBUNTU14. 04 also has a period of time, but still learning more basic things.

Because the command line interface is still a bit unaccustomed, so always rely on the graphical interface, need to use the terminal is also only open in the graphical interface or using CTRL+ALT+F1 to use the terminal.

Not long ago, I tried to start the interface by default to command-line mode, and so on after all the values have been adjusted. Boot as desired into the command line mode, but suddenly found unexpectedly forgot the account, password is remember. So I was caught in an endless aching egg. After a lot of tossing, finally solved.

The solution might look like this:

1. Because you cannot enter graphics mode, you can only press and hold shift to enter the grub interface at boot time.

2. After entering the Grub interface, select the Ubuntu advanced option and press E to enter

3. Then press Ctrl+x to boot

4. Boot complete, select recovery mode

5. Then select root drop to root shell promopt

6. Enter the boot password to enter the command line

7. Enter "Ls-l/home" to query the master user's username

8. Enter "passwd user name" to reset the password.

Then you can get into the system.

So, in fact, if there is an Ubuntu physical machine, to change the password is not difficult.

Ubuntu forgot login account and password

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.