Facebook Twitter Instagram
    TecAdmin
    • Home
    • Ubuntu 20.04
      • Upgrade Ubuntu
      • Install Java
      • Install Node.js
      • Install Docker
      • Install LAMP Stack
    • Tutorials
      • AWS
      • Shell Scripting
      • Docker
      • Git
      • MongoDB
    • FeedBack
    • Submit Article
    • About Us
    Facebook Twitter Instagram
    TecAdmin
    Home»Linux Distributions»Ubuntu»How to Reset Admin Password on Ubuntu

    How to Reset Admin Password on Ubuntu

    RahulBy 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”
       [email protected]:~# 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.

      [email protected]:~# mount -o remount,rw /
      

      ubuntu-password-reset-4

    password reset
    Share. Facebook Twitter Pinterest LinkedIn Tumblr Email WhatsApp
    Previous ArticleList of Ports to Open for WHM & cPanel Server ?
    Next Article How To Permanent Redirect (301) a Page in PHP

    Related Posts

    Changing the Login Screen Background in Ubuntu 22.04 & 20.04

    Updated:May 9, 20222 Mins Read

    (Resolved) Please install all available updates for your release before upgrading

    2 Mins Read

    How to Install LightDM Display Manager on Ubuntu

    Updated:May 10, 20222 Mins Read

    Change Screen Resolution of An Ubuntu VM in Hyper-V

    Updated:May 2, 20222 Mins Read

    How to Check IPv4 Address on Ubuntu 22.04

    2 Mins Read

    How to Configure Static IP Address on Ubuntu 22.04

    Updated:May 4, 20223 Mins Read

    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

    Recent Posts
    • How to Install JAVA on Ubuntu 22.04
    • Switching Display Manager in Ubuntu – GDM, LightDM & SDDM
    • Changing the Login Screen Background in Ubuntu 22.04 & 20.04
    • How To Install PHP (8.1, 7.4 or 5.6) on Ubuntu 22.04
    • (Resolved) Please install all available updates for your release before upgrading
    Facebook Twitter Instagram Pinterest
    © 2022 Tecadmin.net. All Rights Reserved | Terms  | Privacy Policy

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