HT1338: OS X: Updating OS X and Mac App Store appsLearn about OS X: Updating OS X and Mac App Store apps
Currently Being ModeratedApr 21, 2013 6:54 PM (in response to mikde)
Forgot Your Account Password
For Snow Leopard and earlier
For Lion/Mountain Lion
Boot to the Recovery HD:
Restart the computer and after the chime press and hold down the COMMAND and R keys until the menu screen appears. Alternatively, restart the computer and after the chime press and hold down the OPTION key until the boot manager screen appears. Select the Recovery HD and click on the downward pointing arrow button.
When the menubar appears select Terminal from the Utilities menu.
Enter resetpassword at the prompt and press RETURN. Follow
instructions in the dialog window that will appear.
Or see Reset a Mac OS X 10.7 Lion Password and
If you are unable to boot from an installer DVD:
(these will only work on Leopard or earlier)
1. Boot to Safe Mode by restarting and after the chime press and hold down
the COMMAND-S keys until a black screen with white type appears.
2. At the prompt, type the following commands pressing return after each
If you do not receive a "Filesystem OK" message then repeat this command
until you do. If after seven tries you still do not receive a "Filesystem OK"
message, then the system is corrupted and needs to be reinstalled.
mount -uw /
mv local.nidb local.old
shutdown -r now
The second-to-last command above will cause OS X to think that the operating system is newly installed, and when the new owner starts up the computer it will send him/her to the startup wizard where he/she can start a new user without reinstalling.
This last method does not actually change a password. It simply removes the user accounts and lets you create an initial admin account as if the computer were new out of the box.
Reset Admin Password Using The Terminal
You can reset the password by printing out (or writing down) and carefully following these steps.
First, find the short name of the admin user on the machine. The easiest way of doing this is by looking at what the directory is called in the Users folder.
Now, start in Single-user Mode. It should boot into a command line.
Enter these exact lines. Press RETURN after each.
mount -uw /
ifconfig lo0 up
netinfod -s local
Now you'll need that short name. Enter "passwd", a space, and the short name of the admin. For example, if the admin was rather prosaically called "imadmin", you would enter "passwd imadmin".
The computer will now prompt you to change the password for "lmadmin" (or whatever the short name was). Go ahead and enter a new password.
and the machine will reboot. The admin password should now be changed.
Currently Being ModeratedApr 16, 2014 6:23 PM (in response to Gerson Herben)
Try resetting your password through single user mode:
- Start your computer in single user mode: http://support.apple.com/kb/ht1492
- The computer will show a black screen with white writing. Do not freak out. This is supposed to happen.
- Type the following lines, and press enter after each line:
/sbin/mount -uw /
Important: Wait until you see the "root#:" prompt before typing a new line.
4. Choose the correct line below for your Operating System. Type the respective command and hit enter when you are done.
For Snow Leopard and Below:
launchctl load /System/Library/LaunchDaemons/com.apple.DirectoryServices.plist
For Lion and Above:
launchctl load /System/Library/LaunchDaemons/com.apple.opendirectoryd.plist
5. Now, type ls /Users
This will list all of the users of your computer.
6. Using the name of the account password you want to reset, type this:
dscl . -passwd /Users/USERNAME NEWPASSWORD
Make sure to type the username exactly as it appears in step 5. For example, if the username is "bob72", and you want to reset the password to be "123", you would type the above command as:
dscl . -passwd /Users/bob72 123
7. After executing the last command in Lion or newer operating systems, the computer may return an error about com.apple.DirectoryServicesLocal.plist. Ignore this message! If you properly typed the commands, the password reset worked anyway.
8. Once root# reappears, type reboot then hit enter. The computer will restart, and the account will have the new password.
9. Unfortunately, this process will cause problems with your keychain unless you suddenly remember your old password. When the keychain error appears, hit RESET KEYCHAIN. You will lose any saved passwords. While this is annoying, it is a necessary security feature.
I hope this helps!
More Like This
- Retrieving data ...
- This solved my question - 10 points
- This helped me - 5 points