How to reset your ubuntu password

If you forgot your ubuntu password, don’t be panic 😀 .. Ubuntu have a method for recovery a password.

The first, you must calm down :), and then boot up or reboot your computer, and when prompted, choose *Advanced options for Ubuntu :

ubuntu-advanced-option-boot

And then you will see the prompted like this, after that you choose root, and press Enter.

ubuntu-advanced-option-boot-2

 

Next, remount the shell with read and write option with type this in your shell prompt :

mount -rw -o remount /

after running the above command, the shell should be remounted with read and write permission for file system.

And now, you can set your new password with run passwd command in your shell.

passwd username

for example my username is legolas, i used this command :

passwd legolas

Ubuntu Server

 

after changing your password, using this command for reboot your ubuntu system. The sync commands makes sure to write out data to your disk before system reboot.

sync

reboot -f

And now you can use your ubuntu with a new password..

Have a nice day ^_^

Advertisements

Leave a Reply

Fill in your details below or click an icon to log in:

WordPress.com Logo

You are commenting using your WordPress.com account. Log Out / Change )

Twitter picture

You are commenting using your Twitter account. Log Out / Change )

Facebook photo

You are commenting using your Facebook account. Log Out / Change )

Google+ photo

You are commenting using your Google+ account. Log Out / Change )

Connecting to %s