Recovering root password in debian with grub bootloader
Hi, all!
I'm trying to recover the root password for a linux installation that I did about three months ago. Lost the slip of paper... anyway, I've found a couple of solutions online involving editing the line containing "kernel" in the grub loader. The first one suggested adding "single" to the end of that line; but when I did that, the system prompted me for the root password so that I could perform maintenance. Doh!
The second solution I found was to add "init=/bin/sh" to the end of the same "kernel" line. I did this, and it seemed to drop me into a shell. The next step was to "mount -orw,remount /". I did this, then typed "passwd", at which point I was informed that the shell did not recognize the command "passwd". This is when I realized I was out of my league. I typed "exec init," signed online, and made this post. If anyone could help me with this, I'd really appreciate it.
Incidentally, am I at risk because I forgot to "mount -oro,remount /" before "exec init"? Is all my system open for writing now?
Thanks in advance for any help!
|