How to reset the root password in linux

Source: Internet
Author: User
Demo environment: Virtual Machine: VMware10 preview system: redhatel6.31, start from Start 2, press any key when the countdown appears to enter the menu 3, press "e" to proceed to step 4, continue to step 5 as shown in the figure below, enter "space + 1" and press enter to return to this interface. then press "B" to start the guide. 6. click "B" and then enter the single-user mode. Command: demo environment:
Virtual Machine: VMware 10 preview
System: red hat el6.31, starting from startup



2. press any key to enter the menu when the countdown occurs.



3. press "e" to proceed to the next step.



4. continue to the next step as shown in the figure



5. enter "space + 1" and press enter to return to this interface. then press "B" to start the guide.




6. click "B" and then enter the single-user mode.
Command: passwd ------------- modify the root user's secret



7. You cannot see the characters you entered when entering the password. you only know what you entered.



8. last step,
Command: reboot -------- restart
After restarting, you can log on with a new password.



OK. it's over. I don't want to talk about it anymore.
This demonstration is only for common users (such as Linux installed in a virtual machine). do not do anything boring. This method is not suitable for grub encryption cracking. grub encryption cracking requires entering the "rescue mode" and grub encryption cracking will be repeated next time.

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.