In this video, you’ll learn how to reset or change the root password on Red Hat Enterprise Linux (RHEL8- 9). This is a critical skill for Linux system administrators, especially when you forget the root password or need to regain access to your system.
Commands used in this tutorial:
rd.break
mount -o remount,rw /sysroot
chroot /sysroot
passwd root
touch /.autorelabel
exit
exit