Previously in 10.5/10.6 to reset a user's password in single-user mode one would have to type this:
Nice, but this doesn't work in 10.7 Lion. In addition, you are prevented from changing the root password in single-user mode.
Do this in 10.7 Lion; boot into single-user mode and type:
^ after typing this, you may now use 'passwd root' to change the root password
Now you can continue reseting the user's password:
** You may see an error message that states com.apple.DirectoryServices.plist cannot be found; ignore this in Lion.
Code:
mount -uw /
launchctl load /System/Library/LaunchDaemons/com.apple.DirectoryServices.plist
dscl . passwd /Users/SHORTNAMEGOESHERE newpasswordhere
Nice, but this doesn't work in 10.7 Lion. In addition, you are prevented from changing the root password in single-user mode.
Do this in 10.7 Lion; boot into single-user mode and type:
Code:
mount -uw /
launchctl load /System/Library/LaunchDaemons/com.apple.opendirectoryd.plist
Now you can continue reseting the user's password:
Code:
dscl . passwd /Users/bob bobsnewpassword
** You may see an error message that states com.apple.DirectoryServices.plist cannot be found; ignore this in Lion.
Last edited: