MuSa
Cadet
Cadet
  • 752 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

0 Kudos
1 Solution

Accepted Solutions
Tracy_Baker
Starfighter Starfighter
Starfighter
  • 619 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

0 Kudos
11 Replies
Tracy_Baker
Starfighter Starfighter
Starfighter
  • 667 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
0 Kudos
MuSa
Cadet
Cadet
  • 628 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

0 Kudos
Tracy_Baker
Starfighter Starfighter
Starfighter
  • 620 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
0 Kudos
MuSa
Cadet
Cadet
  • 608 Views

Yes, it works after removing the directives.

Thanks a lot 

0 Kudos
melnajim
Mission Specialist
Mission Specialist
  • 444 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  

0 Kudos
Tracy_Baker
Starfighter Starfighter
Starfighter
  • 303 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
0 Kudos
Kartik_Sachdeva
Mission Specialist
Mission Specialist
  • 333 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.

0 Kudos
  • 98 Views

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

0 Kudos
  • 77 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.

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