cancel
Showing results for 
Search instead for 
Did you mean: 
MuSa
Mission Specialist
Mission Specialist
  • 13K 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

47 Replies
Tracy_Baker
Starfighter Starfighter
Starfighter
  • 692 Views

I'm not sure what you mean by "changed"... Those are the instructions that have been used since RHEL 7.0.

https://www.redhat.com/sysadmin/recover-root-passwd

They will not work for RHEL 9.0

They will work for RHEL 8.x, 9.1, and 9.2.

Program Lead at Arizona's first Red Hat Academy, est. 2005
Estrella Mountain Community College
Guile
Cadet
Cadet
  • 641 Views

I had this issue becouse the creation playbook has failed. After re-running the playbook it worked fine.

Captura de Tela 2023-09-02 às 12.47.45.png

AnaV
Flight Engineer
Flight Engineer
  • 110 Views

Hi there,

None of the options indicated in this discussion works. Any chance someone would review the current RH134 9.0 lab and get it fixed?

AnaV
Flight Engineer
Flight Engineer
  • 106 Views

Right, seems to work with init=/bin/sh. Good to know.

AnaV
Flight Engineer
Flight Engineer
  • 105 Views

Well, not really.

/sysroot does not exists, ok, so I mounted /

chroot is not found

and then exit hungs the VM.

Chetan_Tiwary_
Moderator
Moderator
  • 69 Views

@AnaV I have tried this exercise for the nth time succesfully - and did not face any issue since a long time now: simply followed the exercise as instructed and it went on smoothly : Are you selecting the resuce kernel boot loader entry and editing it ?

 Screenshot from 2024-05-08 22-43-46.png

once the server is up , I was able to login with the updated password :

Screenshot from 2024-05-08 22-54-13.png

Please raise a support case in case you are getting error even after follpwing the steps and our support team will help / guide you. 

0 Kudos
AnaV
Flight Engineer
Flight Engineer
  • 96 Views

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

Apologies for wasting your time!

Chetan_Tiwary_
Moderator
Moderator
  • 45 Views

no problem @AnaV ! Glad your issue was resolved. 

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