How to reset an OS X account password with an Apple ID
There are several ways to reset an account password in OS X. The primary method is to use the Users & Groups system preferences, under which you can use the “Change Password” option for your account (called “Reset Password” for other accounts), but you can also use the hidden “resetpassword” tool in the OS X Recovery drive; or if you are savvy with the Terminal, boot your system to Single-User mode and use the “passwd” or “dscl” commands to give a specified account a new password.
While all of these available options have their own conveniences, you can also associate your account with an…
See the article here: How to reset an OS X account password with an Apple ID