Saturday, February 15, 2014

Ever lost ur MAC Password??? Its easy to recover...


Reebot ur machine and Press Command + S key while rebooting.

Leopard or below, type the following commands, hitting Enter after each one and waiting for the prompt to come up again before running the next one:

/sbin/fsck -fy
/sbin/mount -uw /
launchctl load /System/Library/LaunchDaemons/com.apple.DirectoryServices.plist
dscl . -passwd /Users/rajkumar password


If the Mac is running Lion or above, you'll instead want to use the following commands:

/sbin/fsck -fy
/sbin/mount -uw /
launchctl load /System/Library/LaunchDaemons/com.apple.opendirectoryd.plist
dscl . -passwd /Users/rajkumar password

Replace rajkumar with the user whose account you want to access and password with the new password you want to assign to that user. If you get an error message about com.apple.DirectoryServicesLocal.plist on a Lion or Mountain Lion machine, just ignore it—the password reset should have still worked.

0 comments:

Post a Comment