Personal computing discussed
Moderators: renee, SecretSquirrel, notfred
Have you tried booting into single user / recovery mode and resetting the password from there?
whm1974 wrote:I didn't know that Debian's found had died. Sad to see to him go, he will be missed.
Thin Man wrote:Have you tried booting into single user / recovery mode and resetting the password from there?
That will be my next attempt. So far it won't accept the root password to do anything. Thought I'd ask before I floundered around too much. Thanks for the suggestion.
just brew it! wrote:Thin Man wrote:Have you tried booting into single user / recovery mode and resetting the password from there?
That will be my next attempt. So far it won't accept the root password to do anything. Thought I'd ask before I floundered around too much. Thanks for the suggestion.
Turns out you need the root password for recovery mode too.
Here's how to get around that:
1. Boot system, and hit "e" at the grub menu before the system starts to load. You will get a screen where you can manually edit the system boot options.
2. Find the line that starts with "linux /boot" and add a space, followed by "init=/bin/bash" to the end of that line. Note: line may wrap around on the screen, make sure you're REALLY at the end!
3. Hit F10. System should boot into a root shell.
4. Enter the command "mount -rw -o remount /". This makes the root file system writable so you can change the password.
5. Use the "passwd" CLI utility to reset the root password.
6. Type "sync".
7. Reboot the system.
just brew it! wrote:On the bright side, it's really a generic set of instructions for recovering from "I don't know the root password" situations, regardless of how you got there.