[Linux] RedHat Linux forgot Rootpassword How to set it up again password

Source: Internet
Author: User

1. Boot on the Grub screen that appears, press E, for example to see:

watermark/2/text/ahr0cdovl2jsb2cuy3nkbi5uzxqvu3vubnlzb29uyq==/font/5a6l5l2t/fontsize/400/fill/i0jbqkfcma==/ Dissolve/70/gravity/center ">

2. Use the up and down keys to select the second item (may not be the same). Then press the E key to edit, enter a space and single press the ENTER key. The results for example are as seen in:


3. Be taken back to the edit mode screen (for example, as seen)


4. Select the row again and press the B key, and GRUB will boot into single-user Linux mode.

At the end of the load, you will face a shell prompt similar to the following:
sh-2.05#
Now change the root command, type the following commands (for example, as seen):
sh-2.05# passwd Root


5. You will then be asked to enter a new password. Password will be changed after the end. Then type reboot to boot again.



This will be OK.











[Linux] RedHat Linux forgot Rootpassword How to set it up again 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.