Linux serverNETWORK ADMINISTRATIONS

Reset Root Password From Recovery Mod RHEL 8 / CentOs 8

Perform following for Recovery Mode root Password Reset

1. type rd.break at the end of the line starting with Linux, once ready press CTRL+x.

2. Remount Sysroot with Read & Write access #mount -o remount,rw /sysroot.

3. Enter chroot system # chroot /sysroot.

4. Passwd to change root password # passwd password confirm password.

5. File-system relabeling # touch /.autorelabel

6. Exit the chroot # exit

7. Logout to normal boot # exit or logout

Relabelling will take some time depending on your system speed, once done login with changed root password.

source

centos 7

Leave a Reply

Your email address will not be published. Required fields are marked *