How does one forget the password in linux?

Source: Internet
Author: User

1. In the Grub boot program, a series of prompts are given below. If you are interested, you can try it out. Press the "e" key to enter the Grub configuration before the system starts. (If your system boot program is LILO, which is similar to Grub, follow the instructions provided by LILO)

2. Then we select the middle item: "kernel/vmlinuz-2.4.20-8 ro root = LABEL =/" press the "e" key to edit.

3. Enter "Space + single" after "LABEL =/" and press Enter. Remember to enter space!

4. Then select the middle option: "kernel/vmlinuz-2.4.20-8 ro root = LABEL =/single" and press the "B" key to start the single user mode system.

5. If a prompt such as sh-2.05b # appears in front of your system, congratulations, you have successfully entered single user mode.

6. Enter passwd root after sh-2.05b # And press Enter. The exciting new password input page is displayed.

7. After you enter the new password and confirm it again, your root user password will be changed successfully.

8. Enter the "reboot" command to restart the system. You can use the new password to use the root account upon next 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.