PDF download Download Article
Easily access your Linux device by changing your password with this simple guide
PDF download Download Article


So you forgot your Linux/Ubuntu/Unix password? No worries, this article will guide you how to reset your Linux password in minutes.

  1. After the computer boots in to recovery mode, from the Recovery menu select the option 'Drop to root shell prompt'
    Advertisement
  2. To change the password type the command 'passwd username' and follow the instruction below.
  3. There is a possibility that you may get an 'Authentication token manipulations error' as Filesystem state could be 'Read only'. To fix it, type the following command before the first command. mount -rw -o remount
  4. Advertisement

Community Q&A

Search
Add New Question
  • Question
    What do I do if the computer won't accept commands after selecting the "Drop to root shell prompt' option?
    Haxalicious
    Haxalicious
    Community Answer
    You need to mount the filesystem as read-write (rw). Do step 4 and type "mount -rw -o remount". You can also go into the recovery menu first, select "fsck" which will mount your filesystem as rw (and it will also check the disk for errors too) and after that you can use the root shell.
  • Question
    Will it lose my memory?
    Community Answer
    Community Answer
    If you are referring to data in your hard disk, there is no data to lose. You are just modifying the file /etc/passwd file by the above-mentioned step.
  • Question
    How do I protect my computer from this attack?
    Community Answer
    Community Answer
    Inside a terminal, type sudo nano /etc/default/grub. After finding #GRUB_DISABLE_RECOVERY="true", uncomment that line. Then, exit the nano text editor (make sure to save changes).
See more answers
Ask a Question
200 characters left
Include your email address to get a message when this question is answered.
Submit
Advertisement

Video

Tips

Submit a Tip
All tip submissions are carefully reviewed before being published
Name
Please provide your name and last initial
Thanks for submitting a tip for review!

You Might Also Like

Change the Root Password in Linux Change Your Root Linux Password (Even If You Don't Know It)
Become Root in Linux Access and Use the Root Account in Linux
Retrieve Passwords in Windows XPRetrieve Passwords in Windows XP
Solve Incorrect Password ...Try Again Error in UbuntuSolve Incorrect Password ...Try Again Error in Ubuntu
Become Root in Ubuntu Get Root Access in Ubuntu Linux
Change an iLO PasswordA Complete Guide to Changing an iLO Password
Set Administrator Password Change the Windows Administrator Password
Reset a Lost Admin Password on Mac OS XReset a Lost Admin Password on Mac OS X
Access Your Computer if You Have Forgotten the Password7 Ways to Log Into a Windows PC with a Forgotten Password
Log on to Windows XP Using the Default Blank Administrator Password3 Ways to Access Windows XP with a Blank Administrator Password
Open the Root Terminal in Kali Linux Enable Root in Kali Linux and Open a Root Terminal
Bypass Windows 7 PasswordBypass Windows 7 Password
Reset Any User's Password on a Mac Reset Any User's Password on a Mac
Linux How to Change UserLinux: How to Change User in Terminal & GNOME
Advertisement

About This Article

wikiHow is a “wiki,” similar to Wikipedia, which means that many of our articles are co-written by multiple authors. To create this article, volunteer authors worked to edit and improve it over time. This article has been viewed 124,212 times.
How helpful is this?
Co-authors: 5
Updated: August 24, 2022
Views: 124,212
Categories: Linux
Thanks to all authors for creating a page that has been read 124,212 times.

Is this article up to date?

Advertisement