How to Reset Your Forgotten User Password in Ubuntu 14.04

November 28, 2014 — 6 Comments

reset user password ubuntu

Lost your Ubuntu user password? Well, it’s not hard to reset your password even you’ve forgot the username and below is how to do it step by step.

1. To get started, you need to boot into Recovery Mode to get a console for running commands.

Start your machine and when you’re at the Grub boot loader, select boot with the entry says something below. You may find it under “Advanced Options for Ubuntu” option:

Ubuntu, with Linux 3.x.x … (recovery mode)

Boot recovery mode

If you don’t see the grub menu, press and hold the Shift key after you pressed the Power button to boot the computer.

2. In the Recovery Mode options list, select “root Drop to root shell prompt” and hit Enter. You should see the black and white command prompt at the end of the screen:

Recovery Mode Root Prompt

3. Now run below commands one by one:

  • First remount the file system with read & write permission:
    mount -o rw,remount /
  • If you don’t remember the username, below command will show you:
    ls /home
  • To change user password:
    passwd USER_NAME_HERE

    Replace USER_NAME_HERE with your username. When it prompts, type in a new password and confirm.

The output “passwd: password updated successfully” means user password has been successfully reset.

Reset Password

Finally run command exit to back to menu (picture in step 2) and select “resume Resume normal boot” to exit Recovery Mode.

I'm a freelance blogger who started using Ubuntu 5+ years ago and wishes to share my experiences and some useful tips with Ubuntu beginners and lovers. Please notify me if you find any typo/grammar/language mistakes. English is not my native language. Contact me on Google Plus or email to

6 responses to How to Reset Your Forgotten User Password in Ubuntu 14.04

  1. Hi,
    Just a little typo:
    mount -o rw,remount /

  2. this means that anyone being able to access the grub menu can change your password, right ?
    isn’t that a security hole ?

  3. venkatesh Bandari May 21, 2016 at 8:15 am

    It’s working…..Thank you….thanxx great tutorial

  4. Actually ,when I tried these step it ended up saying this user account does not exist,but it does. I want to reset my passwd but not getting way out of it.can you help me.

  5. Still helpful, sorted my lost password great, thanks for posting!

Leave a Reply


Text formatting is available via select HTML.

<a href="" title=""> <abbr title=""> <acronym title=""> <b> <blockquote cite=""> <cite> <code> <del datetime=""> <em> <i> <q cite=""> <strike> <strong>