0% found this document useful (0 votes)
51 views3 pages

Reset The Root Password On Debian 9 - Linux Forum - Spiceworks

This document provides a two-step process for resetting the root password on a Debian 9 system. The first step involves editing the GRUB boot options to boot into single-user mode. The second step mounts the filesystem as read-write and uses the passwd command to set a new root password before rebooting.
Copyright
© © All Rights Reserved
We take content rights seriously. If you suspect this is your content, claim it here.
Available Formats
Download as PDF, TXT or read online on Scribd
0% found this document useful (0 votes)
51 views3 pages

Reset The Root Password On Debian 9 - Linux Forum - Spiceworks

This document provides a two-step process for resetting the root password on a Debian 9 system. The first step involves editing the GRUB boot options to boot into single-user mode. The second step mounts the filesystem as read-write and uses the passwd command to set a new root password before rebooting.
Copyright
© © All Rights Reserved
We take content rights seriously. If you suspect this is your content, claim it here.
Available Formats
Download as PDF, TXT or read online on Scribd
You are on page 1/ 3

Reset the Root Password on Debian 9 - Linux Forum - Spiceworks https://community.spiceworks.com/how_to/161191-reset-the-root-passw...

Home > Linux > General Linux > How-tos

How to: Reset the Root Password on Debian 9

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

• Boot your system


• At the boot screen press 'e'

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

Step 2: At you terminal

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

Not a hard processes and a must know for linux admins

References
Debian

Related Discussion Groups:


General Linux
Debian GNU/Linux
Spiceworks General Support

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

Main Areas of Contribution:


General Linux |
General Networking |
General IT Security |
Windows Server |
Virtualization

1 Comment

spicehead-cm0ys Jun 19th, 2020 at 8:34am


I followed this guide with an old Debian 7. There's a difference though, on Debian 7 it should be done

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...

without the trailing /:

init=/bin/bash

Thanks.

Add your comments on this How-to! Join the IT Network or Login.

Back to Top

Read these next...

Load More

3 of 3 02/05/2022 18:11

You might also like