Go Back   MacRumors Forums > Apple Systems and Services > OS X > Mac OS X 10.7 Lion

Reply
 
Thread Tools Search this Thread Display Modes
Old Jul 27, 2011, 09:52 PM   #1
nelz886
macrumors member
 
Join Date: Oct 2010
Location: New Jersey
Single User Mode PW Reset: 10.7 Lion

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.
__________________
problem?

Last edited by nelz886; Jul 27, 2011 at 11:17 PM.
nelz886 is offline   0 Reply With Quote
Old Aug 10, 2011, 01:54 PM   #2
macmba
macrumors member
 
Join Date: Aug 2011
Actually... you can just:

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

It works.
macmba is offline   0 Reply With Quote
Old Sep 3, 2011, 11:21 AM   #3
nelz886
Thread Starter
macrumors member
 
Join Date: Oct 2010
Location: New Jersey
Quote:
Originally Posted by macmba View Post
Actually... you can just:

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

It works.
This works in Snow Leopard, not in Lion. com.apple.DirectoryServices.plist was removed in Lion
__________________
problem?
nelz886 is offline   0 Reply With Quote
Old Sep 3, 2011, 03:09 PM   #4
mrapplegate
macrumors 68030
 
Join Date: Feb 2011
Location: Cincinnati, OH
Try this. Read the comments for added suggestions.


http://hints.macworld.com/article.ph...10727063028750


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.
mrapplegate is offline   0 Reply With Quote
Old Sep 6, 2011, 04:15 PM   #5
nelz886
Thread Starter
macrumors member
 
Join Date: Oct 2010
Location: New Jersey
Right. I provided instructions on how to reset the password via Single-User mode in Lion.
__________________
problem?
nelz886 is offline   0 Reply With Quote
Old Sep 18, 2011, 04:36 PM   #6
dvot
macrumors newbie
 
Join Date: Sep 2001
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?

Last edited by dvot; Sep 18, 2011 at 04:52 PM.
dvot is offline   0 Reply With Quote
Old Feb 12, 2014, 10:43 AM   #7
fernandojulian
macrumors newbie
 
Join Date: Feb 2014
[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
fernandojulian is offline   0 Reply With Quote

Reply
MacRumors Forums > Apple Systems and Services > OS X > Mac OS X 10.7 Lion

Thread Tools Search this Thread
Search this Thread:

Advanced Search
Display Modes

Similar Threads
thread Thread Starter Forum Replies Last Post
How to get into single user mode on new macbook air Pie13 Mac Basics and Help 11 Oct 16, 2013 04:40 AM
Disabling Single User Mode 10.6.8 Macman671 Mac Basics and Help 3 Oct 15, 2013 10:15 AM
in single user mode i get **the volume macintosh could not be repaired** icarus1 OS X 6 May 7, 2013 12:03 PM
Single user mode in MAC OS X omni1787 OS X 5 Mar 21, 2013 12:07 PM
Single User Mode won't recognize any commands killerbee79 MacBook Pro 2 Jul 7, 2012 04:30 PM

Forum Jump

All times are GMT -5. The time now is 02:17 AM.

Mac Rumors | Mac | iPhone | iPhone Game Reviews | iPhone Apps

Mobile Version | Fixed | Fluid | Fluid HD
Copyright 2002-2013, MacRumors.com, LLC