From charlesreid1

To boot the Mac into recovery mode, restart and hold down the Option key, and select the recovery partition of the Mac

To reset the password:

  • Utilities > Terminal
  • Run the command resetpassword
  • (Now you should be able to restart/login/set login preferences)