Hello all,
I have just installed Ubuntu on my system. And now i forgot the password selected during the installation process. Can anyone have any idea to reset password?
Thank you in advance.
Hello all,
I have just installed Ubuntu on my system. And now i forgot the password selected during the installation process. Can anyone have any idea to reset password?
Thank you in advance.
Resetting password is so easy in Ubantu. reset your password by following steps:
- Boot your computer and when you see "Loading Grub" press the ESC (Escape) key. If you missed it, just reboot and try again.
- On Grub prompt, press 'e' to enter Edit mode.
- Highlight the line that begins with kernel and press 'e'.
- Type the following command after the word 'splash' at the end of th e line:
rw init=/bin/bash- Press enter
- Press 'b' to reboot
- you will see a passwordless root shell on startup.
- Type the following command and replace 'username' with the name of the account you want to change:
passwd username- Type in a new password and retype to verify
- Reboot the system.
Another way is to boot into the system via a live cd open up Applications->Accessories->Terminal then mount your ubuntu drive if its on /dev/sda1 do this: mount /dev/sda1/ /media/sda1
Then we chroot into the system:
Now change the password, and reboot.chroot /media/sda1
passwd user
To reset your password first, you have to reboot into recovery mode. If you have a single-boot, you may have to press the Escape key during bootup in order to see the boot menu. If you have a dual-boot, the boot menu should appear without the need to press the Escape key. From the boot menu, select recovery mode, which is usually the second boot option.After you select recovery mode and wait for all the boot-up processes to finish, you'll be presented with a few options. In this case, you want the Drop to root shell prompt option so press the Down arrow to get to that option, and then press Enter to select it. The root account is the ultimate administrator and can do anything to the Ubuntu installation (including erase it), so please be careful with what commands you enter in the root terminal.
Once you're at the root shell prompt, if you have forgotten your username as well, type:You should then see a list of the users on your Ubuntu installation.ls /home
To reset the password, type:where username is the username you want to reset.passwd username
Just type the password and hit Enter when you're done. Retype the password when prompted and hit Enter. Type 'exit' to return to the recovery menu. After you get back to the recovery menu, select resume normal boot.
Bookmarks