Chorn Sokun's Weblog

Conquer inner fear, push it to the limit!

[mac os x lion] Reset a user’s password in single user mode

leave a comment »

Lesson learn for mac newbie, always show input method in login screen otherwise here how you going to get back into your machine.
  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.opendirectoryd.plist
  5. Type dscl . -passwd /Users/username password, replacing username with the targeted user and password with the desired password. Ignore the error message!
  6. Reboot
Advertisements

Written by Chorn Sokun

March 2, 2012 at 11:42 am

Posted in Tips & Tricks

Tagged with

Leave a Reply

Fill in your details below or click an icon to log in:

WordPress.com Logo

You are commenting using your WordPress.com account. Log Out / Change )

Twitter picture

You are commenting using your Twitter account. Log Out / Change )

Facebook photo

You are commenting using your Facebook account. Log Out / Change )

Google+ photo

You are commenting using your Google+ account. Log Out / Change )

Connecting to %s

%d bloggers like this: