ZhoubaWiki:ResetRootPassword

From ZhoubaWiki
Revision as of 16:23, 22 May 2021 by Garak (talk | contribs) (Created page with "== Recovering Root Password On Debian And Grub2 == On the grub boot screen type <code>e</code> for edit. Next edit the line starting with <code>linux</code>, at the end add <...")
(diff) ← Older revision | Latest revision (diff) | Newer revision → (diff)
Jump to navigation Jump to search

Recovering Root Password On Debian And Grub2

On the grub boot screen type e for edit. Next edit the line starting with linux, at the end add init=/bin/bash. It should look like this.

linux /boot/vmlinuz-version root=UUID=hex ro quite init=/bin/bash

Next hit Ctrl-X to boot, you should land on a prompt without having to type your password. Next enter the following two commands:

mount -o remount,rw /
passwd

Enter the new password twice, type the following:

sync
reboot

You should be all set!