My sister bought a used MacBook about 6 months ago and she has lost her password.
Here is the procedure I tried to use to reset the password:
- 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
But when I try the step 4, it says launch_msg(): Socket is not connected
.
I would like to know what command to enter in the single user mode to know what version the Macbook is running and the right command to reset the password. Thank you.