Get the App
SLTechnology News&Howtos  ›  Network Security  › 

Centos7 forgot root password, reset

Shulou Source: shulou.com Published: 2022-06-01 06:40:26 10月03日 Update

1. Restart the system; press the up and down keys to select the operating system to be modified, usually the first, then press e to enter the editing state, delete rhgb and quiet, add init=/bin/bash; and then ctrl+x

two。 Enter the command from mount: mount-o remount,rw /

3. Type the command to change the password using passwd: passwd

Enter the new password twice; this will see Xiaobai fast or garbled, don't panic, just keep going.

4. Then type the command: touch / .autorelabel

5. Last restart: exec / sbin/init

6. The great task has been completed!

Rhgb

And

Quiet

Rhgb

And

Quie

Tags: Command password system input panic done operating system up and down garbled big work status say this is rookie choose Apple Docker Huawei Linux macOS MariaDB Microsoft MySQL NVidia OPPO Reno Redmi vpn NVidia MariaDB OPPO Reno