
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
- 1,973 Views
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
Accepted Solutions

- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
- 1,902 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.

- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
- 1,886 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 e 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
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
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

- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
- 1,903 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.

- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
- 1,888 Views
Thanks for the response

- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
- 1,887 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 e 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
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
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

- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
- 1,817 Views
thanks, I didn't know that method


- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
- 1,797 Views
I did not either.