Facebook X (Twitter) Instagram
    TecAdmin
    • Home
    • FeedBack
    • Submit Article
    • About Us
    Facebook X (Twitter) Instagram
    TecAdmin
    You are at:Home»Linux Distributions»Ubuntu»How to Reset Admin Password on Ubuntu

    How to Reset Admin Password on Ubuntu

    By RahulMarch 11, 20151 Min Read

    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

    password reset
    Share. Facebook Twitter Pinterest LinkedIn Tumblr Email WhatsApp

    Related Posts

    Understand "git reset --soft"

    The Difference Between Git Reset –soft, –mixed, and –hard

    Secure Your Online Data and Privacy

    5 Ways to Secure Your Online Data and Privacy in 2023

    Apt configuration file options /etc/apt/apt.conf

    View 6 Comments

    6 Comments

    1. michael on July 14, 2020 10:46 pm

      how to set a lost password to add or remove programs on ubuntu

      Reply
    2. John Doe on March 4, 2018 4:49 pm

      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

      Reply
    3. ali on July 25, 2016 1:42 pm

      thanks it helped alot

      Reply
    4. Denn on June 14, 2016 3:22 am

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

      Reply
      • Granny on January 20, 2018 8:53 pm

        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.

        Reply
    5. Bernard Farrell on May 2, 2016 6:14 pm

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

      Reply

    Leave A Reply Cancel Reply

    Advertisement
    Recent Posts
    • Difference Between Full Virtualization vs Paravirtualization
    • Virtualization vs. Containerization: A Comparative Analysis
    • Using .env Files in Django
    • Using .env File in FastAPI
    • Setting Up Email Notifications for Django Error Reporting
    Facebook X (Twitter) Instagram Pinterest
    © 2023 Tecadmin.net. All Rights Reserved | Terms  | Privacy Policy

    Type above and press Enter to search. Press Esc to cancel.