Linux machine password reset

Linux machine password reset

Once in a while we also forget some passwords. This procedure will give you full root access. Needless to say – be careful.

There are quite a few methods to achieve same results. Assuming linux machine is bootable, this is the quickest and easiest:

  1. Select Rescue mode during initial  linux boot
  2. Remount with read/write privileges

    mount -rw -o remount /

  3. To reset password type this

    passwd <username>  

Press enter and you will be prompted for a new password, then confirm

Good Luck

Share this post

Leave a comment

Your email address will not be published.