Linux password lost

  1. Press Shift during boot to enter the Boot menu
  2. Press e to edit the entry
  3. Append init=/bin/sh to the line starting with “linux”
  4. Boot with Ctrl-X
  5. Enter mount -a
  6. Enter mount -o rw,remount /
  7. Enter passwd USERNAME (USERNAME is your username)
  8. Enter the new Password
  9. Enter sync
    — wait a few seconds —
  10. Power cycle your machine