centos7 forget the root system administrator account password

centos7 forget the root system administrator account password

With the increasingly widespread use of computers, users will now have multiple passwords, not the software is that the password, QQ, email, games, as well as the system login password! Each password is not the same! So more and more need to remember a password! Because of this, as long as one is not used for a long time, it is very likely that password password! Then when we want to use again, you will find very frustrating because you forget your password, you can not use the normal!

The following share with you, when you forget the root administrator account centos7 the login password how to solve

First, open centos7, press the "e" in the choice of entering the system interface to enter the edit page.

Press the down key, to find the row "Linux16" beginning, at the end face of the input line "init = / bin / sh"

Then press "ctrl + X" single-user mode key combination

Then enter "ls" query the current position (may be omitted), Enter

Then enter "mount -o remount, rw /" (note that a space / -o between between the mount and with rw)

Then enter the "passwd" Enter

The next step is to change your root account password, and re-enter a password less than eight (password when you enter is not displayed, it looks like the same did not respond, just enter the correct and enter on it)

Then enter touch /.autorelabel, Enter

Enter the exec / sbin / init, carriage return

The following screen appears after the carriage return, here a little wait a few minutes, the system will automatically restart

 

Then on the other system restart and then enter check whether they have succeeded modified

 

Remember to click concern subject to find useful, convenient later encountered the available ~ ~ ~ ~

Guess you like

Origin www.cnblogs.com/pxjbk/p/11590260.html