This step-by-step tutorial will be helpful for beginners to reset root password on RHEL 9 and Fedora systems.
How to Reset Root Password on RHEL & Fedora systems?
Step 1: Reboot the Server or power on the server and press the ESC key till the GRUB Menu appears. Select the desired kernel if multiple kernels are installed or select the default kernel and press e to edit the kernel
Step 2: Search for the word ro from the kernel parameters and replace it with the below parameters and press ctrl+X to enter into the emergency mode.
Step 3: Once the system completely boots into emergency mode, mount the root filesystem in read-write mode
Step 4: Change the root password with the passwd command, and provide a stronger password twice to set the password.
Alternatively, you can use the below Norton Password Generator link to generate a stronger password
Step 5: Execute the autorelabel command and exit from the emergency mode and reboot the server.
Step 6: Once the server booted up log in with the new root password
From this tutorial, you have learned how to Reset root password for RHEL 9 and Fedora 36 systems.
Do let us know your comments and feedback in the comments section below.
If my articles on TipsonUNIX have helped you, kindly consider buying me a coffee as a token of appreciation
Thank You for your support!!