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 while typing 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
---------------------------------------------------------------------------------------------------------------------
If you resolve your problem, if you feel quite good,
RBI may tip, voluntary, sort of a few cents is love, good things or want to share,
You can also walk away with a red envelope Alipay, scan code collar red envelope, you can use Alipay red envelope arrived now, you can sweep every day, real and effective