Tip of the day for all you Red Hat 9 administrators out there. Need to reset the root password? Either for the RHCSA exam or in the field?
Things have changed a bit in RHEL 9. “rd.break” does not work anymore. These are the steps that need to be taken.
mount -o remount,rw /This is necessary because it’s mounted as read-only.
This command will reboot the machine and now you have a new root password! 😎