Single User Mode PW Reset: 10.7 Lion

Discussion in 'Mac OS X Lion (10.7)' started by nelz886, Jul 27, 2011.

  1. nelz886, Jul 27, 2011
    Last edited: Jul 27, 2011

    macrumors member

    nelz886

    Joined:
    Oct 23, 2010
    Location:
    New Jersey
    #1
    Previously in 10.5/10.6 to reset a user's password in single-user mode one would have to type this:
    Code:
    mount -uw /
    launchctl load /System/Library/LaunchDaemons/com.apple.DirectoryServices.plist
    dscl . passwd /Users/SHORTNAMEGOESHERE newpasswordhere
    Nice, but this doesn't work in 10.7 Lion. In addition, you are prevented from changing the root password in single-user mode.

    Do this in 10.7 Lion; boot into single-user mode and type:
    Code:
    mount -uw /
    launchctl load /System/Library/LaunchDaemons/com.apple.opendirectoryd.plist
    ^ after typing this, you may now use 'passwd root' to change the root password

    Now you can continue reseting the user's password:
    Code:
    dscl . passwd /Users/bob bobsnewpassword
    ** You may see an error message that states com.apple.DirectoryServices.plist cannot be found; ignore this in Lion.
     
  2. macrumors member

    Joined:
    Aug 10, 2011
    #2
    Actually... you can just:

    mount -uw /
    launchctl load /System/Library/LaunchDaemons/com.apple.DirectoryServices.plist
    passwd <username>

    It works.
     
  3. thread starter macrumors member

    nelz886

    Joined:
    Oct 23, 2010
    Location:
    New Jersey
    #3
    This works in Snow Leopard, not in Lion. com.apple.DirectoryServices.plist was removed in Lion
     
  4. macrumors 68030

    Joined:
    Feb 26, 2011
    Location:
    Cincinnati, OH
    #4
    Try this. Read the comments for added suggestions.


    http://hints.macworld.com/article.php?story=20110727063028750


    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.
     
  5. thread starter macrumors member

    nelz886

    Joined:
    Oct 23, 2010
    Location:
    New Jersey
    #5
    Right. I provided instructions on how to reset the password via Single-User mode in Lion.
     
  6. dvot, Sep 18, 2011
    Last edited: Sep 18, 2011

    macrumors newbie

    Joined:
    Sep 11, 2001
    #6
    problems

    @ nelz886

    I followed your instructions, but I get the following error message after entering new root password (repeated twice), "Could not verify credentials because the directory server does not support the requested authentication method"

    Any other tips?
     
  7. macrumors newbie

    Joined:
    Feb 12, 2014
    #7
    [solved]

    My friends i used:



    mount -uw /
    launchctl load /System/Library/LaunchDaemons/com.apple.DirectoryServices.plist
    dscl . passwd /Users/SHORTNAMEGOESHERE newpasswordhere
    su <user>
    passwd <user>
    old Pass:<same a new>
    new pass: <same a old>
    retype: <same a old>

    and ok ! jejejeje
     

Share This Page