cancel
Showing results for 
Search instead for 
Did you mean: 
dkcbk
Flight Engineer
Flight Engineer
  • 11.8K Views

Reset forgotten root password in RHEL9

Jump to solution
Hi.
Can someone please describe which is the correct way to reset forgotten root password in RHEL9? As someone mentioned in some other post, rd.break method doesnt work in RHEL9.
Tnx
Labels (1)
24 Replies
huyvl3-fptcloud
Flight Engineer
Flight Engineer
  • 648 Views

@Andres_Tarallo , Do you use telegram? I want to discuss more about changing the root password

0 Kudos
fortunehr
Mission Specialist
Mission Specialist
  • 633 Views

I have found a solution to my issue, you can try adding
rd.break console=tty0
Rather than just rd.break
This should work fine then follow the other instructions
# mount -o remount,rw /sysroot/
# chroot /sysroot/
# passwd root
Enter new password
# touch /.autorelabel 

this is very important 
Then exit
And reboot

It worked for me and just rd.break didn’t work

Let me know how it goes

Andres_Tarallo
Flight Engineer
Flight Engineer
  • 627 Views

Did you tried this oh RH134 labs?

It's intresting !!! Thanks for sharing

 

Andrés

0 Kudos
fortunehr
Mission Specialist
Mission Specialist
  • 624 Views
Not exactly, I ran it on my own rhel 9.2 VM that I use in practicing for my EX200 exam and it seems to work fine as long as you don’t forget to add anything
Andres_Tarallo
Flight Engineer
Flight Engineer
  • 618 Views

Try it on a VM with RHEL 9.0. The EX200 exam is on RHEL 9.0, I've tryed on the labs of RH134 in one is not working as intended. 

 

 

0 Kudos
Join the discussion
You must log in to join this conversation.