Linux command to change the password

1. Select the system menu screen, press "e" to enter the edit mode

2. In the string line "Linux16" beginning, move the cursor to the end of the line, and then enter the "init = / bin / bash" , press "Ctrl + x" single-user mode

3. Enter "mount -o rw, remount", remount the directory, type "passwd root" change the root password

4. Enter "touch /.autorelabel", input "exec / sbin / init" to restart the system

Guess you like

Origin www.cnblogs.com/ada54410017/p/11165761.html