How to: Recover Ubuntu User’s Password

16 03 2009

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

  1. 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 . . . “ :)

  2. 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

  3. 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


Actions

Information

2 responses

19 03 2009
itachi

yah… hari gini ngasih tau yg begituan

19 03 2009
abz89

biarin , , ,
ini mah untuk yang belum tau aja!!
skalian baut catatan wa aja,

tkut2 lupa . .

Leave a comment