10.5: Reset a user's password in single user mode |
|
|
We needed to reset the password on a Leopard system, but we didn't have the OS X install DVD available. After a few minutes of playing around, I came up with this solution:
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.
Reboot
This allows you to reset the password in single user mode without booting from the install media.
[robg adds: For everyone about to comment about this massive security hole, please don't do so. We ran ...
|