Tip & How-To about Apple Computers & Internet

How to reset your Mac OS X Password

Let's say you totally forgot the password to log on to your Mac. Or maybe you purchased a used Mac from someone else and they've got it locked down. There are numerous ways to reset a password with no OS X discs

Reset 10.5 Leopard & 10.6 Snow Leopard password

  1. Power on or restart your Mac.
  2. At the chime (or grey screen if your chime is turned off), hold down Command+S on your keyboard to enter single-user mode.
  3. This step is optional, but it's a good idea because it checks the consistency of the hard disk before moving on. At the prompt, type fsck -fy and press Enter/Return. Wait for the checks to complete before going to the next step.
  4. Type mount -uw / and press Enter.
  5. Type launchctl load /System/Library/LaunchDaemons/com.apple.DirectoryServices.plist and press Enter.
  6. Type ls /Users and press Enter. This lists all of the usernames on the computer - helpful if you don't know or remember what these are.
  7. Type dscl . -passwd /Users/username password and replace "username" with one of the users displayed in the previous step. Replace "password" with a new password of your choice. Press Enter.
  8. Type reboot and press Enter.

Reset 10.4 Tiger password
  1. Power on or restart your Mac.
  2. At the chime (or grey screen if your chime is turned off), hold down Command+S on your keyboard to enter single-user mode.
  3. Type sh /etc/rc and press Enter/Return.
  4. Type passwd username and replace "username" with the short name of the user account for which you'd like to reset the password.
  5. Type your desired password and press Enter. It won't show itself on the screen, so be careful what you type. You will most likely have to enter it again to confirm.
  6. Type reboot and press Enter

Tricking your Mac into creating a new user account
  1. Power on or restart your Mac (should work for any Mac OS X system).
  2. At the chime (or grey screen if your chime is turned off), hold down Command+S on your keyboard to enter single-user mode.
  3. This step is optional, but it's a good idea because it checks the consistency of the hard disk before moving on. At the prompt, type fsck -fy and press Enter/Return. Wait for the checks to complete before going to the next step.
  4. Type mount -uw / and press Enter.
  5. Type rm /var/db/.AppleSetupDone and press Enter.
  6. Type shutdown -h now and press Enter.
The third method of resetting your Mac's password requires some additional explanation. Rather than simply changing the password like the previous two methods do, this one fools the operating system into believing it has never been started before. This means when you restart the machine, it will take you through the entire setup & registration process all over again. Do not worry, all of your pre-existing data is still available. Just continue with this process and do not choose the option to transfer or migrate information to the Mac.
Once you're done, log in with your new admin account and go to System Preferences > Accounts. You may have to click on the lock icon in the lower-left corner before making changes here. You should see your original user account(s) in the left column. Try clicking on one of them to convert it to a standard user account (uncheck "Allow user to administer this computer") and change the password. You should be able to successfully log in to that account now and access all of your files and programs. If you want, you can log back in with your new admin account and re-check the "Allow user to administer this computer" option in System Preferences to grant admin privileges to the original user again.
That should cover it! As always, remember messing with single-user mode and Terminal is risky and may lead to trouble if you make mistakes. Considering you're already locked out of the computer, though, you'll probably be willing to take your chances at this point.
One last thing... if you have a Keychain Access password, you will probably need to reset that as well. You can do this by selecting "login" under Keychains on the left and choosing Delete from the Edit menu. You'll lose everything in the Keychain, but you'll now be able to start fresh and add new ones.

Posted by on

Computers & Internet Logo

Related Topics:

Related Questions:

1 Answer

adp total source login


Problems Logging In
Contact the Employee Service Center at 1-800-554-1802 (Monday-Friday 8:00am-10:00pm ET) or email esc@adp.com.
Forgot Password
Select Forgot my password and follow the instructions to answer a series of security questions to reset your password. Then, use your username and new password to log in to the application.
Forgot User ID
Select Forgot my username and follow the instructions to answer a series of security questions. Then, your username will be displayed and you can log in to the application.
What To Do if You Are Locked Out
Contact the Employee Service Center at 1-800-554-1802 (Monday-Friday 8:00am-10:00pm ET) or email esc@adp.com.

Mar 17, 2014 | Computers & Internet

1 Answer

I can't log in to firefox for more than a couple of seconds on my mac


Hi,
you are using outdated version of Firefox, please try installing the latest one from their website:
http://www.mozilla.org/en-US/firefox/fx/#desktop

Apr 15, 2013 | Computers & Internet

1 Answer

I log into these site yesterday,but i 4 got my username n password.Can i retrive them


Hi,

If you forgot both the username as well as the password then its difficult to retrieve them

However, you should check the mailbox whose ID you've given during the registration. The mail from that particular site maybe having the username.

You can use that username and then retrieve that password from the "Forgot password" section in that website.

Hope this helped. Please vote this answer it found useful.

Apr 19, 2011 | Nokia Lands Phones

1 Answer

how do i retrieve my device lock password for my SONY PRS- 600?


I'm not sure if you're looking for your password to the Sony Ebook Store authorization or your password when you purchase a book. Here are both solutions:
Password for Sony Authorization - You will need to connect your device to your computer via USB and then log-into the Sony Store. If you don't know your password, simply select "forgot password" and it will be sent to you. - Then you can log-in and authorize your device (it will be on your "home" screen when you log-in properly if you need to authorize your account)
Lock Password for Books - This is the credit card number you used when you purchased the ebook

Feb 06, 2011 | Sony Reader Touch PRS-600

Not finding what you are looking for?

1,749 people viewed this tip

Ask a Question

Usually answered in minutes!

Top Apple Computers & Internet Experts

paulcarew

Level 3 Expert

2454 Answers

Martin Buck
Martin Buck

Level 2 Expert

82 Answers

Paul Bade

Level 3 Expert

1516 Answers

Are you an Apple Computer and Internet Expert? Answer questions, earn points and help others

Answer questions

Loading...