cancel
Showing results for 
Search instead for 
Did you mean: 
dkcbk
Flight Engineer
Flight Engineer
  • 43K 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)
32 Replies
huyvl3-fptcloud
Flight Engineer
Flight Engineer
  • 4,331 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
  • 4,259 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,997 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,932 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
  • 3,239 Views

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

0 Kudos
fortunehr
Mission Specialist
Mission Specialist
  • 3,224 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
  • 3,218 Views

Did you tried this oh RH134 labs?

It's intresting !!! Thanks for sharing

 

Andrés

0 Kudos
fortunehr
Mission Specialist
Mission Specialist
  • 3,215 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
  • 3,209 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
  • 56 Views
It will work on rhel 9.4 plow , using with disa stig security profile
0 Kudos
Join the discussion
You must log in to join this conversation.