In Mac OSX 10.5 through 10.7, the procedure for resecodeing a user's password in single user-mode has changed slightly, so I put up some quick reference notes here:
|NOTE: This procedure does NOT work for OSX 10.8 Mountain Lion|
- Boot into single user mode (press Command-S at power on)
- Type mount /
- 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.
- Reboot ( shutdown -r now )