Ask Mac Questions and Get Answers from Experts ASAP
Important: You have to boot from a Recovery drive for this to work, andthe Mac must be running OS X 10.7, 10.8, and 10.9. New Macs include a native recovery mode option through a boot partition, but a recovery disk or boot drive made yourself will work as well.
This replaces the “Reset Password” menu item that used to be in place prior to OS X , which was around in Snow Leopard and before, and one of two original methods of resetting a forgotten password XXXXX more technical ways. Why the change to the Terminal method with newer versions of Mac OS? Probably for increased security, particularly now that recovery partitions are standard with Macs.
The above method is by far the easiest.