Wednesday, February 17, 2010

Reset your lost Ubuntu Password

If you ever get locked out of your Ubuntu installation as I found myself to be tonight, you can reset your password quite easily using the following steps.

1.Power up your computer.
2.Press ESC at the grub menu.
3.Press e for edit.
4.Highlight the line that begins “Ubuntu, KERNEL ………” and press e.
5.Go to the end of this line, add rw init=/bin/bash and press enter.
6.Press b to boot your system.
7.Your system will boot up to a passwordless root shell.
8.Type in passwd username where username is the username you lost the password for.
9.Set your password.
10.Type in reboot.
That is it! you can now log in using your new password. You can even reset your root password here but cannot login with it at the login screen.

No comments:

5 Faedah RTOS Linux Kernel - Apa Itu Sistem Operasi Masa Nyata (RTOS) di Malaysia

Di VIENNA dimana selepas 20 Tahun, Real-Time Linux Akhirnya Masuk ke Dalam Kernel Utama Linux. Itulah pada yang memahami bagaimana berkemban...