Linux serverNETWORK ADMINISTRATIONS

How to reset root password on RHEL 8 | Sinhala

#networkbyte
#sinhala
#recoverpassword
#rhel8
#linux

Published on June 19, 2021

Today, I will teach you. how to recover root password on red hat enterprise Linux version 8. this is also work for Centos/Fedora.

Today, what I will cover,
How to recover root password

Command

$ rd.break

$ mount | grep sysroot

$ mount -o remount,rw /sysroot

$ chroot /sysroot

$ passwd
give new password for root user

$ touch /.autorelabel

$ exit

$ logout

source

centos 7

Leave a Reply

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