, , , ,

There are several way to reset a forgotten user password in Ubuntu, here it is:

  1. Via Recovery Boot Menu (GRUB)
  2. Wait ’til 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 . . . “ 🙂

  3. If your GRUB doesn’t have a recovery mode menu
  4. Just edit the exist one.

    When 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

  5. The other alternative method (Using LiveCD)
  6. Open a Gnome terminal :
    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