Skip to content

How to Reset Admin Password on Ubuntu

How to Reset Admin Password on Ubuntu Systems.

Category
Security
Covers
Ubuntu
Versions & support
About Ubuntu →

When you install Ubuntu on your system. The first user you have created get administrative privileges along with root account. You can also create administrative user latest installation of Ubuntu using main account.

In some case if you lost your administrative account access on Ubuntu, you can reset it within 2 minutes. I am running Ubuntu 14.10 on Virtual Box. Follow below steps to reset password.

  • 1. Restart you Ubuntu system.
  • 2. On Grub loading screen press ESC to view list.
  • 3. Now select “Advanced options for Ubuntu” and press enter.
    ubuntu-password-reset-1
  • 4. Now select following (recovery mod) option and press enter.
    ubuntu-password-reset-2
  • 5. Here you will see Recovery menu. Select “Drop to root shell prompt”.
    ubuntu-password-reset-3
  • 6. Change password of your administrative user. For this example, I am changing password of user “root”
     root@ubuntu:~# passwd root
    
  • 7. In case you get error like below.
    passwd: Authentication token manipulation error
    passwd: password unchanged
    

    remount your file system in read/write mode using following command and try reset password again.

    root@ubuntu:~# mount -o remount,rw /
    

    ubuntu-password-reset-4

Rahul

Rahul Kumar is the founder and chief editor of TecAdmin.net. A Red Hat Certified Engineer (RHCE), he has worked in IT since 2009, with hands-on experience in Linux system administration, DevOps, web hosting, cloud platforms and automation. He started TecAdmin in 2013 to share practical, step-by-step guides, and leads its editorial work with one aim: making technical learning clear and useful for sysadmins, developers and beginners alike.

6 Comments

  1. When i type in passwd user (user is the admin acc),
    it says user not found, but “user” definitely is a user!
    Please help me get past this stupid error message
    Thanks

  2. I get through all of this but my keyboard will not type when it tells me to enter new password.
    ????? Next

    1. Some ubuntu os’s terminals don’t show the password as you type. Just type it in like you would any other time. You won’t see it and it will seem like the keyboard isn’t working but if the keyboard worked before you got there it works now.

  3. Many thanks, this worked for me. I’m new to VirtualBox this saved me a lot of time.

Leave a Reply

Your email address will not be published. Required fields are marked *


Back to top