Can someone explain to me why i can't use rd.break for root password in rhel 9?

motasem aljaafreh:
can someone explain to me why i can’t use rd.break for root password in rhel 9 ?

Al West:
It should work - what procedure are you following? What happens when you try it?

Al West:
You are right it does not work, nor does using single - though their documentation says it should:
https://access.redhat.com/documentation/en-us/red_hat_enterprise_linux/9/html/configuring_basic_system_settings/changing-and-resetting-the-root-password-from-the-command-line_configuring-basic-system-settings|https://access.redhat.com/documentation/en-us/red_hat_enterprise_linux/9/html/configu[…]word-from-the-command-line_configuring-basic-system-settings

Al West:
@motasem aljaafreh this guide works:
https://docs.fedoraproject.org/en-US/quick-docs/reset-root-password/#sect-how-to-reset-the-password-from-emergency-or-single-user-mode
Basically add rw init=/bin/bash instead

motasem aljaafreh:
@Al West i found it thank u bro

Aaron Lockhart:
@motasem aljaafreh: This is a known issue tracked by Red Hat: https://bugzilla.redhat.com/show_bug.cgi?id=2057365

The following will work on RHEL 9:

1: Press e to edit the GRUB boot options.

2: In the linux line, change ro to rw (this is just before crashkernel)

3: Press ctrl + e to go to the end of the linux line and add /init=/bin/bash

4: Press ctrl + x to boot

5: Run passwd to change the root password.

6: Run touch /.autorelabel

7: Run exec /sbin/init

I will produce an updated video and slide to account for this issue introduced in dracut for RHEL 9 (it no longer uses sulogin).

I use RHEL 9.3 and this has already been fixed. So we need to add a disclaimer which method should be used for which version.