sand0z
February 4th, 2009, 03:33 AM
I forgot my account password for an Ubuntu 8.10 server and found this procedure to log in and change it:
Turn your computer on.
Press ESC at the grub prompt.
Press e for edit.
Highlight the line that begins kernel ………, press e
Go to the very end of the line, add rw init=/bin/bash
press enter, then press b to boot your system.
Your system will boot up to a passwordless root shell.
Type in passwd username
Set your password.
This did what I wanted it to do, but I found out that afterward I no longer needed to sudo into commands that previously required it. The changes described above did not appear in successive reboots, but I'm baffled at what might have occurred that changed the system behavior. Anyone have any ideas?
Thanks.
Turn your computer on.
Press ESC at the grub prompt.
Press e for edit.
Highlight the line that begins kernel ………, press e
Go to the very end of the line, add rw init=/bin/bash
press enter, then press b to boot your system.
Your system will boot up to a passwordless root shell.
Type in passwd username
Set your password.
This did what I wanted it to do, but I found out that afterward I no longer needed to sudo into commands that previously required it. The changes described above did not appear in successive reboots, but I'm baffled at what might have occurred that changed the system behavior. Anyone have any ideas?
Thanks.