centos 7 single-user mode, a forgotten root user password reset

Forget single-user mode to solve the root user's password

1. restart the server, press the "e" key when the following interface.

centos 7 single-user mode, a forgotten root user password reset
2. enter the editing interface. The original interface.
centos 7 single-user mode, a forgotten root user password reset
3. Modify the completion of the interface. Now interface.
centos 7 single-user mode, a forgotten root user password reset
4. Press the following interface ctrl-x.
centos 7 single-user mode, a forgotten root user password reset
5. Switch directory.
centos 7 single-user mode, a forgotten root user password reset
6. Enter the new password.
centos 7 single-user mode, a forgotten root user password reset
7. restart the server.

Guess you like

Origin blog.51cto.com/1969518/2485001