cancel
Showing results for 
Search instead for 
Did you mean: 
Kans
Mission Specialist
Mission Specialist
  • 892 Views

Root Password Reset

Jump to solution

Hi All,

Good Day..!

I came to know about debug-shell service which doesn't require password to get root shell prompt.

Can we use the debug-shell to reset the root password instead of going through rescue kernel?

Note: I was able to reset the root password via debug-shell

Thanks

Tags (1)
2 Solutions

Accepted Solutions
Chetan_Tiwary_
Community Manager
Community Manager
  • 821 Views

Yes it can be done.  It is advisable to           mask the service / disable debug-shell.service     after you've finished debugging your boot problems.

View solution in original post

Kans
Mission Specialist
Mission Specialist
  • 805 Views

For people who are wondering how to do it, please follow below instruction.

1. Interrupt the boot loader by pressing any key (except enter) while booting and press to edit the default kernel selection

2. Move your cursor to the end of line which begins with word linux and append systemd.debug-shell

Kans_0-1730772214505.png

3. Press Ctrl+x to save and continue the boot

4. Press Ctrl+Alt+F9 to get the debug shell and then proceed to change the password

Kans_1-1730772332550.png

5. Press Ctrl+Alt+F1 to switch back to default console TTY1 and login with the new password

6. Run systemctl stop debug-shell.service or perform system reboot to stop the debug-shell

Kans_2-1730772820985.png

 

View solution in original post

Tags (1)
5 Replies
Chetan_Tiwary_
Community Manager
Community Manager
  • 822 Views

Yes it can be done.  It is advisable to           mask the service / disable debug-shell.service     after you've finished debugging your boot problems.

Kans
Mission Specialist
Mission Specialist
  • 807 Views

Thanks for the response

Kans
Mission Specialist
Mission Specialist
  • 806 Views

For people who are wondering how to do it, please follow below instruction.

1. Interrupt the boot loader by pressing any key (except enter) while booting and press to edit the default kernel selection

2. Move your cursor to the end of line which begins with word linux and append systemd.debug-shell

Kans_0-1730772214505.png

3. Press Ctrl+x to save and continue the boot

4. Press Ctrl+Alt+F9 to get the debug shell and then proceed to change the password

Kans_1-1730772332550.png

5. Press Ctrl+Alt+F1 to switch back to default console TTY1 and login with the new password

6. Run systemctl stop debug-shell.service or perform system reboot to stop the debug-shell

Kans_2-1730772820985.png

 

Tags (1)
cyb3rx
Flight Engineer
Flight Engineer
  • 736 Views

thanks, I didn't know that method

TM
Flight Engineer Flight Engineer
Flight Engineer
  • 716 Views

I did not either.

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