I'm assuming that you have forgotten your password, if so, here is what you need to do.
1. With the unit turned off, press the power button to power-on the mac, but also hold down the "CMD" and "C" keys on the keyboard at the same time. This will tell the Mac that you want to boot into SINGLE USER MODE.
2. Mac OS will now boot into a unix command line shell. From here you only need to remember your username and then type in the following command-line statements.
sh /etc/rc
passwd USERNAME
reboot
In this instance, USERNAME is the username that you normally login as. The "passwd" command will prompt you to enter a new password for the user called USERNAME.
WARNING: Changing your password this way will wipe out any and all keychain passwords associated with your user account. This is a pain, but better than not logging into the box.
This work for older macs, but for 10.5 and up you have to use dscl as all of the passwords reside in the directory now...
This worked for me on a 10.5 iMac:
1.Boot into single user mode (press Command-S at power on)
2.Type fsck -fy
3.Type mount -uw /
4.Type launchctl load /System/Library/LaunchDaemons/com.apple.DirectoryServices.plist
5.Type dscl . -passwd /Users/username password, replacing username with the targeted user and password with the desired password.
6.Reboot
×
183 views
Usually answered in minutes!
×