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
Yes it can be done. It is advisable to mask the service / disable debug-shell.service after you've finished debugging your boot problems.
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
Yes it can be done. It is advisable to mask the service / disable debug-shell.service after you've finished debugging your boot problems.
Thanks for the response
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
thanks, I didn't know that method
I did not either.
Red Hat
Learning Community
A collaborative learning environment, enabling open source skill development.