- This topic has 1 reply, 1 voice, and was last updated 12 years, 11 months ago by Satish.
- AuthorPosts
- January 23, 2012 at 2:14 pm#1248SatishKeymaster
If you forgot the password of your MacBook, then follow these simple steps to remove it.
Step 1: Reboot your system holding down the Apple key(Command key) and the ‘S’ key at the same time. By doing this, you’ll get unix like command interface.
Step 2: This way you have booted your computer as root user.
Now the commands to reset the password:
mount -uw /
launchctl load /System/Library/LaunchDaemons/com.apple.DirectoryServices.plist
ls /Users
(to get the username to reset if you do not know it)
passwd username
(username being the username you are resetting)
Now type a new password, eventhough it does not show anything on the screen. Type the same password two times.
rm -rf /Users/username/Library/Keychains/login.keychain
reboot
Not sure if it works on Mac OS versions below Leopard 10.5.x.
January 23, 2012 at 2:59 pm#1252SatishKeymasterIn Simple Words:
Restart your Computer, press and hold both Apple Key and ‘S’ key.
Once unix like interface appears, type these commands:mount -uw / rm /var/db/.AppleSetupDone shutdown -h now
Once the system restarts, your Macbook won’t ask for the password!
Note: Make sure to type the commands as is. If you provide wrong spacing and wrong case, it wont work :-(
- AuthorPosts
- You must be logged in to reply to this topic.