There are several way to reset a forgotten user password in Ubuntu, here it is:
- Via Recovery Boot Menu (GRUB)
Wait ’till the shell dropped, so you may easily change the USER password,
$ passwd USER
Reboot! And It works.
FAQ : “My GRUB doesn’t have a recovery mode, what should I do now??”
Answer : “See the next tips . . . “
- If your GRUB doesn’t have a recovery mode menu,
just edit the exist one.When a GRUB appeared, press escape, and “e” to edit a boot line
at the end “kernel . . .” line add this line: “rw init=/bin/bash
” (without quotes)
After some moment, you’ll have a passwordless shell like in recovery mode.
So you can change the password easily.
$ passwd USER - The other alternative method (Using LiveCD)
Open a Gnome terminal :
Applications->Accessories->Terminal
, or
Alt+F2, type “gnome-terminal” without quotes
Mount your partition with ubuntu installed in
you might just click the disk on Places, or
$ sudo mount /dev/sda1/ /media/sda1
in this case, our ubuntu partition is sda1, you’ve to create a /media/sda1 directory before if it doesn’t exist.
chroot into the system:
$ chroot /media/sda1
change the USER password
$ passwd USER
Reboot! And It works.
I Hope it’s useful, thanks
you may leave some comment or question


Recent Comments