You can do this by booting into single user
mode and using root to change the password for the user joe
. Edit the boot instructions for the GRUB menu entry you wish to boot and add the kernel parameter/option single
.
- Select (highlight) the GRUB boot menu entry you wish to use.
- Press e to edit the GRUB boot commands for the selected boot menu entry.
Look near the bottom of the list of commands for lines similar to
linux /boot/vmlinuz-3.2.0-24-generic root=UUID=bc6f8146-1523-46a6-8b\
6a-64b819ccf2b7 ro quiet splash
initrd /boot/initrd.img-3.2.0-24-generic
Change the middle line in (3) by adding the kernel boot parameter single
to the end of the line (i.e. after ro quiet splash
).
For this example you would change
6a-64b819ccf2b7 ro quiet splash
to
6a-64b819ccf2b7 ro quiet splash single
Press either Ctrl+X or F10 to boot using
these kernel options.
After this you will be thrown into a shell. Enter mount -o remount,rw /
then the command passwd joe
and enter your new password for joe
. Restart with reboot
or shutdown -r now
.
1
Since I don't think I can answer this any better than the answers here: http://askubuntu.com/questions/24006 ... use that link :)
– 0xC0000022L – 2013-02-19T00:51:01.343