How to reset your Mac Password
Use Recovery Mode to recover your Mac password

Apple includes a tool with macOS or Mac OS X (depending on which version you are using) to replace a Mac's password. This is the best option if you have completely forgotten your password. Follow these steps:
- Turn off your Mac (choose Apple > Shut Down).
- Press the power button while holding down Command-R. The Mac will boot into Recovery mode. When you see the load bar appear you can let go of the keys. It may take a few minutes to load.
- Select Disk Utility and press Continue.
- Choose Utilities > Terminal.
- Enter resetpassword (all one word, lowercase letters) and press Return
- Select the volume containing the account (normally this will be your Main hard drive).
- Choose the account to change with Select the User Account.
- Enter a new password and re-enter it into the password fields.
- Enter a new password hint related to the password.
- Click Save.
- A warning will appear that the password has changed, but not the Keychain Password. Click OK.
- Click Apple > Shut Down.
Now start up the Mac. You can login using the new password.
Related Articles
How to SMC Reset a Mac
Resetting your Mac System Management Controller (SMC) can be a solution to restore normal lower level system functionality to your Mac, particularly for power and hardware related troubles. * Issues with your Mac cooling fans and fan management: the ...
How to reset iPhone 7 / iPhone 7 Plus
How to force-restart an iPhone 7 or 7 Plus Unlike other iPhone models, the iPhone 7 and its Plus-sized sibling do not feature a physical home button - it's a software-based haptic button that senses a press and buzzes to simulate a click rather than ...
How to reset an iPhone without Losing data
To reset the settings on your device go to Settings >> General then scroll down and tap the Reset button at the bottom. On the Reset screen tap Reset All Settings – Not Erase All Content and Settings – then you’ll need to verify you want to do it ...