Submit Hint Search The Forums LinksStatsPollsHeadlinesRSS
14,000 hints and counting!

10.7: Reset Password System 10.7
Apple has removed the utility to reset a password and restore a user's folder permissions from the Recovery HD. If you need it, you have to open Terminal (from the Recovery HD Utility menu) and type:

resetpassword

Then the old Reset Password application opens.

By the way the old hint to reset a user password by booting in single user mode is no longer working: the file /System/Library/LaunchDaemons/com.apple.DirectoryServices.plist no longer exists.

[crarko adds: I suppose somebody thought it would enhance security to hide the password reset utility. It seems more like a pain to me.]
    •    
  • Currently 4.40 / 5
  You rated: 4 / 5 (5 votes cast)
 
[44,453 views]  

10.7: Reset Password | 16 comments | Create New Account
Click here to return to the '10.7: Reset Password' hint
The following comments are owned by whoever posted them. This site is not responsible for what they say.
10.7: Reset Password
Authored by: joh on Aug 12, '11 08:29:10AM

The reset password functionality resets the login password, but not the keychain password -- something that many people don't seem to understand. Making it a bit harder to reset the password isn't a bad idea.



[ Reply to This | # ]
10.7: Reset Password
Authored by: lurch99 on Aug 12, '11 10:46:07AM

Actually, another method also does work. Boot into the Recovery mode, and from Terminal:

# rm /var/db/.AppleSetupDone

# reboot

This will take allow you to create a fresh account with admin privs, from which you can then easily reset anyone's password.



[ Reply to This | # ]
10.7: Reset Password
Authored by: mikael on Aug 12, '11 11:38:26AM

http://support.apple.com/kb/HT4749
Use this command from single usermode to use dscl:
launchctl load /System/Library/LaunchDaemons/com.apple.opendirectoryd.plist

---
Mikael



[ Reply to This | # ]
10.7: Reset Password
Authored by: newillmeister on Aug 12, '11 06:36:15PM

There is also an option in your user preferences to allow your Apple ID to reset your password.



[ Reply to This | # ]
10.7: Reset Password
Authored by: benwiggy on Aug 13, '11 11:17:54AM

Wait, this is on Terminal from a Lion restore partition?

What is to stop anyone accessing this?

Edited on Aug 13, '11 11:20:03AM by benwiggy



[ Reply to This | # ]
10.7: Reset Password
Authored by: leamanc on Aug 13, '11 01:50:57PM

What's to stop anyone to booting into Single User Mode and resetting passwords, either in Lion or in any other version of OS X...or Linux...or BSD...or any other *nix OS?

The oldest security adage in the world applies here: If someone has physical access to your machine, there is no security.



[ Reply to This | # ]
10.7: Reset Password
Authored by: DCJ001 on Aug 13, '11 03:29:43PM

"Wait, this is on Terminal from a Lion restore partition?

What is to stop anyone accessing this?"

A firmware password.

Edited on Aug 13, '11 03:30:51PM by DCJ001



[ Reply to This | # ]
10.7: Reset Password
Authored by: tbucks on Aug 13, '11 05:37:23PM

It is very simple to defeat a firmware password.



[ Reply to This | # ]
10.7: Reset Password
Authored by: DCJ001 on Aug 13, '11 06:28:34PM

I know.

But ssssshhhhhhhh...



[ Reply to This | # ]
10.7: Reset Password
Authored by: godinvictor on Aug 13, '11 01:18:31PM

So's I'm still hanging onto Tiger, which I still love. It still does some things that throw me.
So yesterday I went to create a new account for a friend and the bugger created a new acccount password for me. Has done this twice in the past.
needless to say Tiger has once again locked me out.
Big problem is the optical drive has taken a beating and I can't use her to reset my password via
diskutlity.
Hence I'm wondering if anyone can tell me how to get back to my things.
PS: I Have the Administrator account. Can still get in . But all of my files are locked out. Can I get at my user account without my optical drive? Say MP3? I have the disks. Can I make Control C work for that drive? Please let me know. FML!




[ Reply to This | # ]
10.7: Reset Password
Authored by: nova20 on Aug 13, '11 06:26:36PM

You can get permanent easy access to the two Apple password utilities in the Recovery HD, if you have followed an earlier hint here about how to ad the Debug menu to the Disk utility and have then enabled the Show Every Partition in the Disk Utility.

If you did that already, all you have to do is to open the Disk Utility, select the Recovery HD, click on Mount it, double-click on the mounted Recovery HD, switch to show invisible files as well (use the terminal or any of the countless little apps to do this - I use HideSwitch), open the folder com.apple.recovery.boot on the Recovery HD, double-click on the BaseSystem.dmg image. In the mounted image, open the Applications folder and then the Utilities folder. There you'll find the two password utilities. You can then copy them to your utilities folder or anywhere you like to have easy access to them in the future.

I suggest to refrain from making any changes to the Recovery HD and to unmount it after you copied the two files.



[ Reply to This | # ]
10.7: Reset Password
Authored by: Jeeves on Aug 13, '11 10:51:20PM

In single user mode, running "dscl ." gives this message…
launchctl: Couldn't stat ("/System/Library/LaunchDaemons/com.apple.DirectoryServicesLocal.plist:): No such file or directory.

DirectoryServices is dead! Long live opendirectoryd!

After running this,

:/ root# launchctl load /System/Library/LaunchDaemons/com.apple.opendirectoryd.plist

then dscl can be used to chance passwords in the usual way…

:/ root# dscl . -passwd /Users/jeeves



[ Reply to This | # ]
10.7: Reset Password
Authored by: Lri on May 07, '12 08:36:18AM

I was able to change the password and log in using the new password. But after that, OS X locked up and showed a dialog about entering the keychain password (the old login password). Unless there's some way around it, this method is pretty much useless...



[ Reply to This | # ]
10.7: Reset Password
Authored by: Lri on May 07, '12 10:33:54AM

Never mind. I tried it a second time and was just able to cancel all of those Keychain dialogs.

The other method of removing /var/db/.AppleSetupDone and creating a new admin account still seems to work as well.



[ Reply to This | # ]
10.7: Reset Password
Authored by: Lance666 on Aug 25, '12 05:17:36PM

It seems this only works when booted to the recovery partition. If you use the Terminal just for fun while booted "normally", it returns
"-bash: resetpassword: command not found"

Does this mean the recovery partition has a different set of commands or a different shell?



[ Reply to This | # ]
10.7: Reset Password
Authored by: macbaldy on Sep 02, '12 05:54:43PM

Evidently, the Recovery HD contains this supplementary app. Typing "resetpassword" in Terminal invokes a popup gui window that makes the password reset clear and clean.

Whoa! This is so nifty that physical access is too much access for distrusted parties. This was truly a teachable moment.



[ Reply to This | # ]