Step 5: restore the Ubuntu system password

Source: Internet
Author: User
Article title: explains how to restore the password of Ubuntu in step 5. Linux is a technology channel of the IT lab in China. Including desktop applications, Linux system management, kernel research, embedded systems, open source, and other basic categories. with the increasing number of network applications, everyone has a lot of account passwords. Fortunately, all applications on the Internet, such as Facebook, Gmail, and QQ, will have a "forgot password" option to help you recover your forgot password. But what if your operating system password is forgotten? You don't have to hesitate to say that this kind of thing is impossible, but anything that is not afraid of 10 thousand will be afraid of it.

Let's assume that you did not care about entering a string of characters during Ubuntu installation, and forgot the user password when it was started later, or if you haven't started it for a long time, you forgot the user password or other reasons. At this time, you can first think of taking a few minutes to reinstall the system. However, it takes time to lose a lot of the original data. However, there is a way to modify the password you forgot in five simple steps when your computer starts up. is it very convenient?

1. open the computer and Press Esc immediately when "Press Esc to enter grub message" appears on the screen.

2. three options are displayed. select "recovery mode" and press enter (1 ).

3. your computer will enter the shell from startup. when a command prompt appears, enter "passwd username". here, username is your username. if you forget your username, you can enter "ls/home" to view the user name, and then enter the preceding command.

4. when a prompt appears, you can enter your new password and confirm it again.

5. enter "shutdown-r now" to restart your computer and use your new password.

In contrast, this simple method is much more convenient for reinstalling the system.

Select "recovery mode" when entering the settings"

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.