What to do if you forget your password in centos

藏色散人
Release: 2020-03-19 11:35:58
Original
36630 people have browsed it

What to do if you forget your password in centos

What should I do if I forget my password?

1. First turn on the system and hold down the esc key

What to do if you forget your password in centos

2. Then press the e key according to the prompts to enter the editing options

What to do if you forget your password in centos

3. Edit and modify two places in the UTF-8 line. Change ro to rw, that is, change read-only permission to read-write permission, and then add init=/bin/sh at the end.

What to do if you forget your password in centos

4. At this time, hold down the Ctrl x shortcut key to enter the rescue mode

What to do if you forget your password in centos

5. Modify the new root The password is 123456. The modification command is as follows

What to do if you forget your password in centos

6. After the password is successfully modified, the following prompt will appear

What to do if you forget your password in centos

7. Enter Update the system information with the following command

What to do if you forget your password in centos

8. Enter the following command to restart the system

What to do if you forget your password in centos

9. At this time you can Use your modified new password 123456 to log in to the system

What to do if you forget your password in centos

Recommended learning Linux video tutorial: https://www.php.cn/course/list/33. html

The above is the detailed content of What to do if you forget your password in centos. For more information, please follow other related articles on the PHP Chinese website!

Related labels:
source:php.cn
Statement of this Website
The content of this article is voluntarily contributed by netizens, and the copyright belongs to the original author. This site does not assume corresponding legal responsibility. If you find any content suspected of plagiarism or infringement, please contact admin@php.cn
Popular Tutorials
More>
Latest Downloads
More>
Web Effects
Website Source Code
Website Materials
Front End Template