Then select Utilities> Reset Password:
Select the volume containing the account to change the password, and select the account from the list (here is System Administrator), create a new password and suggestions (if desired). Note that you can change the ACL ( Access Control List ) file system directly here while retrieving the password. Once completed, save the changes and reboot the system:
And now, you can log into Mac OS X easily with the newly created password.
Change Mac OS X on the first boot
Here's another way to do it, which can be easier and simpler when the system starts booting into Single User Mode and deleting the file as a 'notification' task for Mac OS X that the installation process is The first is complete.
To boot into Single User Mode, restart the computer while holding the Command and S keys after the start signal. After booting into this mode, move to the desired partition with the following command:
sudo mount -uw /
and delete the AppleSetupDone file as follows:
rm -rf /var/db/.AppleSetupDone
Restart with the command:
reboot
And then, you start again like the first install with the Welcome screen. When you come to the following screen, remember to select Don't transfer my information now:
Next, in this step Enter Your Apple ID , press Command + Q to skip. Select Skip when the system requires:
Here, you will create a new Administrator account, enter any name here because you need to go to the operating system and set up System Preferences inside:
Continuing until the Thank You screen is almost finished. Click the Go button here:
When logging into the system with the account you just created, select System Preferences> Accounts:
And now, select the account to recover the password and click Reset Password .:
And similar to the previous method, you declare a new password, suggestions and select Reset Password:
And now, you can login to the old account and the newly created password. These are some simple and effective ways when users forget their login password when they use Mac OS X. Wish you success!