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

49 Replies
Tracy_Baker
Starfighter Starfighter
Starfighter
  • 2,065 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
  • 2,014 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
  • 1,483 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
  • 1,479 Views

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

AnaV
Flight Engineer
Flight Engineer
  • 1,478 Views

Well, not really.

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

chroot is not found

and then exit hungs the VM.

Chetan_Tiwary_
Community Manager
Community Manager
  • 1,442 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
  • 4,747 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_
Community Manager
Community Manager
  • 1,418 Views

no problem @AnaV ! Glad your issue was resolved. 

0 Kudos
kciq
Cadet
Cadet
  • 876 Views

There is a bug in version 9.0, which was resolved in version 9.2. However, the RHEL 134 laboratory course uses version 9.0. I resolved the problem with the following solution:

  • Removed "console=tty0 console=ttyS0,115200n8"
  • Added "rw init=/bin/bash" to the end of the linux line
kenmen
Cadet
Cadet
  • 622 Views

Thanks allot!

For the people who are running the labs on Redhat this works.
What you need to do is the follwoing.

when you are in the grub menu you will see the following lines

1. press e to edit

kenmen_0-1723739703732.png

- Remove the line. console=tty0 console=ttyS0,115200n8 (It also work if you remove console=tty0 console=ttyS0,) REMEMBER REMOVE THE "," or else it won't work

kenmen_1-1723739981259.png

- add the line init=/bin/bash

kenmen_2-1723740225167.png

and press ctrl + x and it should work now! Goodluck everyone! probably the ones who are doing their RHCSA this will come in handy.

after rebooting it should look like this. I hope this is helpfull.

kenmen_3-1723740311140.png

 

 

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