How to reset your OS X Password

Some of you asked how to change the user password in OS X 10.7, 10.8, 10.9, or 10.10 because the System Preferences option to do it was removed with the Lion release.

With Mac OS X Snow Leopard and older Mac OS, the installer disc allows you to change the user password pressing Utilities > Password Reset. In Lion, it was deleted, but you can change it with easy steps. There are two ways to reset the user password in OS X Lion, Mountain Lion or Mavericks:

On Mac OS X:

If you boot in your system, you can change the password. It’s used to change it if you didn’t forget it.

Boot your Mac and open System Preferences > Users and Groups.
You can see the users. Press the user what you want to change the password and select Change Password. You will be asked for your password.

On Recovery:

When you forgot the password and you can’t use OS X, you have to use the new Recovery.

  1. To boot in Recovery system, press Command and R keys during boot and hold the keys until you see the Apple icon. If you have a Mac with Internet Recovery, read > http://support.apple.com/kb/HT4718. If your Mac has a wireless keyboard, hold them when you hear the startup sound.
  2. When it starts, select Utilities > Terminal, and type:

    resetpassword

Press your user and type your password. Finally, reboot.

This doesn’t work for FileVault. If you forget your password with FileVault, you lost your info. Also, you can see if you use Recovery HD or Internet Recovery, or enable it -> http://support.apple.com/kb/HT4904

You can do it with a USB drive > http://support.apple.com/kb/HT4848

Reference:

https://discussions.apple.com/docs/DOC-4101

Network Accounts Are Unavailable – High Sierra, AD, and Open Directory

You will still need local and Active Directory administrator account or a local Apple Administrator account if using Open Directory. Go to System Preferences > Users & Groups

  1. Press Login Options > Unlock > Press Edit near Network Account Server > Open Directory Utility > Unlock > Select Active Directory and press “Edit settings for the selected service” button at the bottom > Unbind > Enter Active Directory administrator credentials and finish the unbinding process
  2. Close Directory Utility and reboot the computer
  3. Repeat steps 1 and 2
  4. Press Join near Network Account Server
  5. Enter your domain (ad.example.com) and Active Directory administrator credentials.

Assuming your AD account is not entirely network account (created on your local system and you can use it without network access) you should also set settings in 8-10 steps.

  1. Optional Step – Go to System Preferences > Users & Groups
  2. Optional Step – Login Options > Unlock > Press Edit on Network Account Server > Open Directory Utility > Unlock > Select Active Directory and press “Edit settings for the selected service” button at the bottom
  3. Optional Step – Press Show more > Check “Create mobile login at login” > Uncheck “Require confirmation before creating a mobile account”
  4. Log out (may need another reboot)
  5. Login with network account by selecting the user from the list or using your name on password (depends on “Display login windows as” setting)