Red Hat 9 Root Password Reset on VMware

  1. Restart your VM.
  2. Quickly press any key to stop the GRUB countdown.
  3. To send input to the BIOS/GRUB screen in VMware:
    • Press Ctrl + Alt to release the mouse/keyboard from the host.
    • Highlight the desired boot entry.
    • Press E to edit the boot options.

2. Edit Boot Options

rd.break enforcing=0
Bash


switch_root:/#
Bash
sh-5.1#
Bash

passwd
Bash

exit
Bash

mount -o remount,ro /sysroot
Bash

exit
Bash
su -
Bash

restorecon -v /etc/shadow
Bash
setenforce 1
Bash
setenforce Enforcing
Bash