cancel
Showing results for 
Search instead for 
Did you mean: 
dkcbk
Flight Engineer
Flight Engineer
  • 9,369 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
dkcbk
Flight Engineer
Flight Engineer
  • 3,872 Views
I took the EX200 RHEL9 exam 2 weeks ago. rd,break works fine.
khokha
Flight Engineer
Flight Engineer
  • 1,186 Views

@dkcbk thanks for you reply.

If i can ask you oone more question about the exam objectives, in RH124 lesson 14 isn't included in the exam as well as the RPM packages? 

0 Kudos
huyvl3-fptcloud
Flight Engineer
Flight Engineer
  • 750 Views

Hi @Tracy_Baker ,

I just check RH199 and I confirm that rd.break works for RHEL 9.0

(updated 12-02-2024)

RHEL9.0 can only use rd.break on the second line, which includes the word "rescue", in direct testing, the documentation also instructs you to choose this line instead of the first line without the word "rescue". If you mistakenly choose the first line, sorry, it does not allow entering enter to operate but still requires the root password (what we are looking for). To solve it, Tracy_Baker's method is really perfect. Perfect to apply.

Additionally, this is actually not due to the error of the online training system because I tried downloading the RHEL9.0 ISO DVD on the homepage and checked that this error really exists.

In addition, I also want to know 2 information: will RHEL9.0 be used in the EX200 exam? If so, will the grub menu have a second line with the word "rescue"?

 
 
 
 
 
0 Kudos
Ankitdev
Mission Specialist
Mission Specialist
  • 803 Views

https://www.linkedin.com/pulse/how-change-reset-forgotten-root-password-rhel-9-ankit-kumar-lyn0f/?tr...

follow this blog that will be helpful for you and correct way to reset your root password.

Andres_Tarallo
Flight Engineer
Flight Engineer
  • 711 Views

I'm preparing to take RHCSA with RH134 labs. On the boot-resetting lab is was unable to do a password reset. If I add the rd.break I end up beeing asked the root password.

However, If I do try reset password on the boot-selecting lab It does work as intendend.

I should test the method showed by Tracy Baker.

Tags (1)
0 Kudos
Andres_Tarallo
Flight Engineer
Flight Engineer
  • 693 Views

I've tested the alternative method for resetting pssword on lab boot-resetting. It works fine.

I might do some testing on a fresh RHEL 9.0 install on my home lab.

Maybe I could put a bug-report/enhacement request somewhere

0 Kudos
huyvl3-fptcloud
Flight Engineer
Flight Engineer
  • 690 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
  • 685 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.

0 Kudos
huyvl3-fptcloud
Flight Engineer
Flight Engineer
  • 683 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
  • 659 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
Join the discussion
You must log in to join this conversation.