cancel
Showing results for 
Search instead for 
Did you mean: 
dkcbk
Flight Engineer
Flight Engineer
  • 35.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)
31 Replies
huyvl3-fptcloud
Flight Engineer
Flight Engineer
  • 3,779 Views

Hi @Andres_Tarallo , I miss understand your context. You mean you just installed virtualbox/vmware RHEL9.0 and rd.break didn't work? Then you tried Tracy_Baker solution and it worked?

Andres_Tarallo
Flight Engineer
Flight Engineer
  • 3,707 Views

I'm practicing on the online labs of RH134.In my home lab right now I don't have a clean install of RHEL 9.0. Tested on Rocky 9.2 works fine.

In the labs of chapter 10 I was able to reset the password (with rd.break ) on lab boot-selecting. but I couldn't on lab boot-resetting. In this lab (boot-resetting) I succeded with Tracy Baker solution.

What might be broken looks like the boot-resetting lab.

huyvl3-fptcloud
Flight Engineer
Flight Engineer
  • 3,445 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
  • 3,380 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
  • 2,687 Views

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

0 Kudos
fortunehr
Mission Specialist
Mission Specialist
  • 2,672 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
  • 2,666 Views

Did you tried this oh RH134 labs?

It's intresting !!! Thanks for sharing

 

Andrés

0 Kudos
fortunehr
Mission Specialist
Mission Specialist
  • 2,663 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
  • 2,657 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
manojboura02
Mission Specialist
Mission Specialist
  • 1,441 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.