Via Single User Mode:
10.7 or above:
Boot to single user mode hold Command + S during booting
# /sbin/fsck -fy # /sbin/mount -uw / # launchctl load /System/Library/LaunchDaemons/com.apple.opendirectoryd.plist # ls /Users (locate user to reset) # dscl . passwd /Users/username password
With OSX CD / USB Drive / Recovery Partition
10.6.8 or below –
Boot from USB or CD of OSX
From the menu bar at the top, select Utilities > Reset Password
10.7 and above –
- Boot while holding down the Command and R keys for Recovery Option (or boot from USB / Disc)
- From the menu bar at the top, select Utilities > Terminal.
- Select your hard drive, choose your user account, and enter a password.