cancel
Showing results for 
Search instead for 
Did you mean: 
MuSa
Mission Specialist
Mission Specialist
  • 23.9K Views

RH134 / RH199: RHEL9.0 Lab reset root password using rd.break not working

Jump to solution

I followed the steps in the document, but I was asked to give the root password.

Here is what I did:

1. On the Grub menu type e

2. Append rd.break to the end of the line starting with linux

3. Hit Ctrl+x

It boots to this:

Give root password for maintenance
(or press Control-D to continue):_

Any tips, please!?

root_pw_reset01.pngroot_pw_reset02.png

3 Solutions

Accepted Solutions
Tracy_Baker
Starfighter Starfighter
Starfighter
  • 10.4K Views

I'm not sure what they're doing with the RHLS environment. I suspect, like the other RH lab environments, workstation, servera, serverb, etc. are virtual machines.

It might be that the grub on those systems include console and/or vconsole directives in the linux line. If they do, the directive(s) and their value(s), may need to be removed:

1.JPG

I just tried it on a RH lab image, and those directives exist. If they aren't removed, the system will stop just where your screenshot shows. Once removed, it will boot into the bash-5.1#  prompt.

Edit: I noticed that, which this did work, the system had to reboot 3 - 4 times before I got the login screen.

Program Lead at Arizona's first Red Hat Academy, est. 2005
Estrella Mountain Community College

View solution in original post

dkcbk
Flight Engineer
Flight Engineer
  • 10.6K Views
I passed the EX200 (RHEL 9) exam a month ago. rd.break method worked fine. I did reset the password without any issue.

View solution in original post

AnaV
Flight Engineer
Flight Engineer
  • 6,274 Views

Ahhhh, You are so right! Thanks for testing this for me, I was not following the correct steps.

Apologies for wasting your time!

View solution in original post

53 Replies
Tracy_Baker
Starfighter Starfighter
Starfighter
  • 10.4K Views

This doesn't work with RHEL 9.0

Instead of rd.break, use init=/bin/bash

Program Lead at Arizona's first Red Hat Academy, est. 2005
Estrella Mountain Community College
MuSa
Mission Specialist
Mission Specialist
  • 10.4K Views

Hi Tracy_Baker, I used init=/bin/bash and

i-) In RHLS lab it boots to: <see attachement >.

ii) In my home lab it is working

Thanks a lot

----

5bdfb720-71e7-4d11-abd1-b99a40533b93.png

Tracy_Baker
Starfighter Starfighter
Starfighter
  • 10.4K Views

I'm not sure what they're doing with the RHLS environment. I suspect, like the other RH lab environments, workstation, servera, serverb, etc. are virtual machines.

It might be that the grub on those systems include console and/or vconsole directives in the linux line. If they do, the directive(s) and their value(s), may need to be removed:

1.JPG

I just tried it on a RH lab image, and those directives exist. If they aren't removed, the system will stop just where your screenshot shows. Once removed, it will boot into the bash-5.1#  prompt.

Edit: I noticed that, which this did work, the system had to reboot 3 - 4 times before I got the login screen.

Program Lead at Arizona's first Red Hat Academy, est. 2005
Estrella Mountain Community College
MuSa
Mission Specialist
Mission Specialist
  • 10.4K Views

Yes, it works after removing the directives.

Thanks a lot 

melnajim
Flight Engineer
Flight Engineer
  • 10.2K Views

reset  password on redhat9 you cannot do old method rd.break this don't function but you can do that like this init=/bin/sh this method function parfectly after changing  root password  don't forget to create /.autorelabel and rebooting by using this command /usr/bin/reboot -f  

Tracy_Baker
Starfighter Starfighter
Starfighter
  • 10.1K Views

The problem with this is that the /usr/bin/reboot command does not exist:

Tracy_Baker_0-1677710243284.png

The command is /usr/sbin/reboot

 

Program Lead at Arizona's first Red Hat Academy, est. 2005
Estrella Mountain Community College
Kartik_Sachdeva
Mission Specialist
Mission Specialist
  • 10.1K Views

Hey 

This happened to me in the actual exam, I tried using rd.break, I tried using rw init=/sysroot/bin/sh, It end up prompting me root password in emergency mode. Due to this, I was not able to crack the password, I see on errata it's a bug for rhel9 and has been fixed in the 9.1 release. But to my bad luck, I had to face this in the actual exam. Any way around for this? Or reporting this to redhat will help in any way, I am not sure. If someone faced this issue and got their way around it somehow, please let me know that would be very helpful, I have rescheduled the exam coming very soon.

CHAKRADHAR1998
Mission Specialist
Mission Specialist
  • 9,856 Views

same happened for me in the actual exam. Don't know what to do next. reported this to redhat support.

CHAKRADHAR1998
Mission Specialist
Mission Specialist
  • 9,835 Views

can any one please help me how we can resolve this issue, if it occurs in real exam. Please shre the recommendations the above recommendation did not work in the real exam.

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