Restart your Mac into the Recovery Partition by holding down the Command () + r keys on the keyboard during the start up process, when you see the start up screen you can let go.
When the machine boots eventually you will see the OS X Utilities screen.
Go to the Utilites menu and select Terminal
At the prompt type resetpassword (hit enter), it's imperative you type exactly as it is written as Terminal can be unforgiving if you make a mistake. So please write down the command before you reboot.
This launches the Reset Password screen, select the Volume Hard Drive in the top part of the window pane, then for the user that you need to reset select the user account in the lower part then add and confirm the new password and click save, you get a confirmation screen and details about the keychain account.
Go to the Apple Menu and click Restart to boot back to the normal hard drive and the new password will take effect immediately.
Want to reply to this thread or ask your own question?
You'll need to choose a username for the site, which only take a couple of moments. After that, you can post your question and our members will help you out.