How to modify the root password of the Linux system in the case of forgetting the root password

Source: Internet
Author: User
1. When the system starts, press and hold the SHIFT key to see the following interface:

2. Find recovery mode, press [E] key to enter the command edit state, to Linux/boot/vmlinuz-....... ro recovery nomodeset line, replace "ro recovery nomodeset" with "Quiet Splash rw Init=/bin/bash", press [ctrl+x] to restart the system.

3. Enter bash and change the password by passwd (start a bash as root), and then press [Ctrl+alt+delete] to restart the system when you are finished:

Press [Ctrl+alt+delete] after the following screen appears, press ENTER directly to enter the system normally

Haha, wish you good luck Oh ~ more please refer to: http://jingyan.baidu.com/article/c843ea0b9e851077931e4aea.html

How to modify the root password of the Linux system in the case of forgetting the root 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.