sentos7 forget the root password, reset the password

1, and restart the host linux system boot screen appears, press core e to enter editing interface;

2, in the final surface linux16 additional parameters that line "rd.break" parameter, remember to empty open a key position. Then press the key combination of Ctrl + x run;

3, about 30 seconds after entering the emergency help mode;

4, followed by entering the following command:

mount  -o  remount,rw  /sysroot

chroot  /sysroot

passwd

.... (here is to modify the password, the system prompts to)

touch  / .autorelabel

exit

reboot

 

Guess you like

Origin www.cnblogs.com/zjz20/p/11290884.html