Linux enters single-user mode to modify ROOT password

Today, on a whim, I turned on a machine I hadn't used for a long time, and I forgot the ROOT password, just to record it. Change the ROOT password in single-user mode.

Restart the selection interface and press E

 

Modify this ro to rm init=/sysroot/bin/sh Press ctrl+x after the modification is complete 

Restart after changing the password.

 

Guess you like

Origin blog.csdn.net/qq_30217227/article/details/105276818