How to reset your Linux password

  1. Once you get to the Linux account page, go to the power button and press restart. While it starts loading up again, hold shift.
  2. You should be in the GNU GRUB menu. Go to advanced options and press E to edit Generic.
  3. Find the line with Linux and type the following after the $vt_handoff: "init=/b\ in/bash" and press enter.
  4. If done correctly, then type "mount -n -o remount,rw /." After that, type "passwd" with a space and your username.
  5. It will ask you to create a new password and to retype the new pasword. After your done you can now log back into your Linux account.