Linuxroot password recovery

Source: Internet
Author: User
Linuxroot password recovery-general Linux technology-Linux technology and application information. For more information, see the following section. I started linux today. I started to open the Virtual Machine and lost my password. I forgot. What should I do? I remember how to restore my password before! I just made it and recovered it. So I will share it with you. The experts will be free. Here is a simple method! Restore the root password of red hat linux in the GRUB boot manager.

1. Turn on the power to boot linux
2. When the GURB boot screen appears, press the e key to enter the GRUB editing status. If GRUB has a password, you need to know the password, but generally no.
3. Select a line starting with kernel and press the e key. At the end of the line, press the Space key and enter single or 1. Press enter to exit the editing mode.
4. After returning to the GRUB screen, type B to guide you to single-user mode.
5. Enter passwd root
6. Enter your desired password as required and confirm it again.
7. reboot restart the system.
8. Enter the password you just set. Come in. Congratulations, the root password has been modified.

In a real enterprise environment, this operation is impossible. Otherwise, the root password will be useless. The enterprise will encrypt GRUB! Only when you are doing experiments at home! I would like to emphasize that you will not be misled!
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.