cancel
Showing results for 
Search instead for 
Did you mean: 
dkcbk
Flight Engineer
Flight Engineer
  • 26.2K 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)
27 Replies
huyvl3-fptcloud
Flight Engineer
Flight Engineer
  • 2,723 Views

@Andres_Tarallo , you typed below command on your online labs?

[student@workstation ~]$ lab start boot-review
0 Kudos
Andres_Tarallo
Flight Engineer
Flight Engineer
  • 2,658 Views

Prior doing the lab I typed:

lab start boot-resetting

After that I've tryed the instruction on the lab. The boot stops asking root password.. Then tryed Tracy Baker solution, managed to reset the password.

Doing further investigation I've started the previous (on the manual) lab (typed lab start boot-selecting). On that configuration I did reset the password with the rd.break trick.

0 Kudos
huyvl3-fptcloud
Flight Engineer
Flight Engineer
  • 1,965 Views

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

0 Kudos
fortunehr
Mission Specialist
Mission Specialist
  • 1,950 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
  • 1,944 Views

Did you tried this oh RH134 labs?

It's intresting !!! Thanks for sharing

 

Andrés

0 Kudos
fortunehr
Mission Specialist
Mission Specialist
  • 1,941 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
  • 1,935 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
  • 719 Views

how to break the root password in exam  (rhel-9) 

 

i try so much but can't break the passwd of root.

here what i did in exam  

first i reboot the vim then select the first kernal press e then rd.break 

then when i was run the command mount -o remount , rw /sysroot  

but it was showing me the mount file do not exist .

anyone tell my the other way to break the root passwd ?

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