cancel
Showing results for 
Search instead for 
Did you mean: 
Antonio03
Mission Specialist
Mission Specialist
  • 2,979 Views

RHCSA Reset Root Password

I am getting conflicting information about resetting the root password in the RH134 book. 

The instructions tell us to append rd.break to the end of the Linux line in the GRUB2 menu, but this method only works when you edit the rescue kernel entry, not the default kernel entry. 

Will we have access to the rescue kernel on the exam? If not, it is impossible to reset the root password using the method provided (rd.break). 

 

**a better question might be: does the exam use RHEL 9.0 or RHEL 9.1?**

Labels (2)
7 Replies
TM
Flight Engineer Flight Engineer
Flight Engineer
  • 2,945 Views

Hi,

My advice is to learn both methods: the one with rd.break in rescue kernel and the one with init=/bin/bash in any kernel.

Regards,

Tshimanga

khokha
Flight Engineer
Flight Engineer
  • 2,926 Views

can you explain more the second method, please?

0 Kudos
Tess
Flight Engineer
Flight Engineer
  • 2,922 Views

@khokha I actually have a nice lab to practice with that second method! It's part of day 7 of my Linux+ class.

The lab starts on the slide numbered 58 in this PDF -> https://github.com/unixerius/XK0-005/blob/main/Lesson%20007%20-%20Boot%20process%20and%20modules/007...

khokha
Flight Engineer
Flight Engineer
  • 2,892 Views

Thanks

0 Kudos
Antonio03
Mission Specialist
Mission Specialist
  • 2,848 Views

I am not entirely sure the init=/bin/bash method works for RHEL 9 anymore. I get a hung terminal when I use that method with an error that says something about system-journal sent SIGTERM by systemd. 

Tess
Flight Engineer
Flight Engineer
  • 2,826 Views

Interesting finding @Antonio03 , I will need to test this with my students! We still use RHEL8 and derivatives, but this is something we can quickly test.

0 Kudos
josebtn
Cadet
Cadet
  • 2,565 Views

 

 

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