Linux – Change the password of any Ubuntu user account including root

Have you forgotten your administrator password or the password of any user account on your Linux installation?  Well, worry not, because we are going to show you how to change it without needing a live installation of Linux.

Things you will need:

  • Know your way around a Linux terminal.

You can change the password of any user account in these easy steps:

  1. Enter recovery mode: To enter recovery mode press and hold down the shift key as the computer starts to boot.
    This is what recovery mode looks like:Linux
  2. Select the one that says (recovery mode) from the list. 
  3. Now you will see a recovery menu on your screen, Scroll down that list and select the option that says “root”. 
  4. Now the filesystem is in read only state, you have to remount it to get write permissions, to do that type: mount –o rw, remount / 
  5. Now you can set any user’s password using this simple command: passwd USERNAME (replace USERNAME with the name of the account whose password you want to change) 
  6. After entering this command you will be asked to type and retype the password, once you have done that, your password will be changed.

That is all you need to do to change the password of any user account on your Linux installation.

Stay tuned for our next article…

Leave a Reply

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