So you’ve inherited your cousins best friends uncle’s Mac running OS 10.x and above. Ok, maybe not, but for some reason you’ve forgotten your login password to your Mac. You can use the DVD/CD it came with but if you don’t have it try this.
Restart your machine while holding down the Command Key (or “Apple Key”) and the “S” key. This will start your Mac up in “Single User Mode.” You should be at the command line when all is said and done. Now type the following.
- #sh /etc/rc
- #passwd yourusername
Another method we’ve found on the net is the following.
- Boot into single user mode (press Command-S at power on)
- Type fsck -fy
- Type mount -uw /
- Type launchctl load /System/Library/LaunchDaemons/com.apple.DirectoryServices.plist
- Type dscl . -passwd /Users/username password, replacing username with the targeted user and password with the desired password.