- When the machine starts, after bios loads up, Grub menu appears (with 2 options for boot kernel)
Use the arrow key to highlight the rescue kernel (Out of 2 options one will specify to be..rescue..
kernel) and presse
- Use the arrow key to mve the crusor to the end of the line starting with
linux..
- At the end of the line, append
rd.break
and press Ctrl+x mount -o remount,rw /sysroot/
to allow read and write permission to /sysroot/chroot /sysroot/
passwd
to change the password. Shell will prompt to type the new password and retype it to avoid typo.touch /.autorelabel
exit
exit
ORreboot
Last active
April 17, 2023 08:20
-
-
Save ZilchBloke/917e9ee4611f98c585766d760e6dee83 to your computer and use it in GitHub Desktop.
Change root password from Grub (RHEL 9 or CentOS9 specific)
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment