No disk encryption. So, how do I recover a password on an un-encryped Ubuntu?
I don’t actual care about salvaging data, just want to login.
Back story:
Booted up an old test machine and couldn’t remeber the password. Nothing useful on the machine so no problem, I’ll just re-install ubuntu. But then I thought, what if I did have something useful on it… How would I go about unlocking the machine? And what if I was using full disk encryption… would it even be possible for a normie like me?
It could be as simple as popping in a usb stick with ubuntu live, which presumably OP has since he was about to re-install, and copying whatever data he wants to a network share before the reinstall.
Oh. That won’t get you the old password, just the data. For that, you’d need to crack the /etc/shadow file with something like john the cracker after starting up with a USB key or mounting the drive on another computer.
Boot into single user more. This might change slightly on distro. Ubuntu has a recovery mode options on grub. use the recovery > drop to root shell prompt options (assuming its still the same)