Reset The Root Password On Debian 9 - Linux Forum - Spiceworks
Reset The Root Password On Debian 9 - Linux Forum - Spiceworks
Strix19
This person is a verified professional.
Verify your account to enable IT peers to see that you are a professional.
Mar 29, 2019 1 Minute Read
Spice (8)
Reply (1)
Subscribe
Share
Reset the Root Password on Debian 9
2 Steps total
Step 1: Edit Grub
Expand
Find the line starting the 'linux' then press Ctrl + e to get to the end of the string and add init=/bin/bash/ press
F10 to reboot
1 of 3 02/05/2022 18:11
Reset the Root Password on Debian 9 - Linux Forum - Spiceworks https://community.spiceworks.com/how_to/161191-reset-the-root-passw...
Expand
○ mount -o remount,rw /
○ passwd - Set the new root password
○ mount -o remount,ro /
Then do a hard reset on the hardware or vm - You will not be able to restart the system via CLI
References
Debian
Follow
Sam H
This person is a verified professional.
Verify your account to enable IT peers to see that you are a professional.
Strix19United Kingdom10 years in ITOther, LPIC-1, Linux+
254
Contributions
5
Best Answers
4
Projects
1 Comment
2 of 3 02/05/2022 18:11
Reset the Root Password on Debian 9 - Linux Forum - Spiceworks https://community.spiceworks.com/how_to/161191-reset-the-root-passw...
init=/bin/bash
Thanks.
Back to Top
Load More
3 of 3 02/05/2022 18:11