This article provides step by step instructions on how to recover/reset lost or forgotten RHEL 8 / CentOS 8 Linux root administrative password. To recover the root password you will first boot to the GRUB menu and perform a break at early stage of the boot process. Afterwards, you will remount the
sysroot directory with read & write access and change the root password on RHEL 8 / CentOS 8 by using the
passwd command to set the new root password.
In this tutorial you will learn:
- How to perform a break at an early stage of the boot process.
- How to remount root partition with read/write access.
- How to change root password.
- How to force filesystem relabeling.