If you have forgot Mac OS X account password then there is a tricky method which let you create a new administrator account on Mac OS X and through that admin account you can reset password of previous account.
So, let’s see how to create an administrator account on Mac while you lost your Mac passwords. This guide written using Mac OS X Snow Leopard.
Creating new Mac OS X account to recover old account



Follow all the wizard instructions, until you see the following screen to create new account. Fill all entries and hit Continue button.

This will create a new administrator account and automatically log into it.

Click on “Account”s icon

Click on lock icon to enable prev. account “Susan” and reset its password.

Enter the Password of current user account and hit OK button


Enter “New password”, “Password hint” and hit “Reset Password” button to reset account password.

Now log off and log in to your prev. account “Susan” and you can delete the account “TrickyWays” that we have created to recover prev. account “Susan”.
So, let’s see how to create an administrator account on Mac while you lost your Mac passwords. This guide written using Mac OS X Snow Leopard.
Creating new Mac OS X account to recover old account
Step 1
Restart system and hold “Cmd + S” keys from keyboard until it shows Terminal.
Step 2
Now type the following commands one after one and press “Enter” button after each command to execute it individually/sbin/mount -uawrm /var/db/.applesetupdonereboot
Step 3
“Reboot” command will restart the Mac and you will see the “Welcome wizard” after beautiful welcome messages animation.
Follow all the wizard instructions, until you see the following screen to create new account. Fill all entries and hit Continue button.

This will create a new administrator account and automatically log into it.
Reset old user account password
Now you can reset the password of your old Mac OS X account using this new account, here is the process.Step-4
Click on “Apple icon” and then “System Preferences”
Click on “Account”s icon

Step-5
Here you can see all Mac OS X user accounts are listed, new account “TrickyWays” that we have created and “Susan” the old one that we want to recover.Click on lock icon to enable prev. account “Susan” and reset its password.

Enter the Password of current user account and hit OK button

Step-6
Now your prev. account is enabled for changes, select that and hit the “Reset Password” button
Enter “New password”, “Password hint” and hit “Reset Password” button to reset account password.

Now log off and log in to your prev. account “Susan” and you can delete the account “TrickyWays” that we have created to recover prev. account “Susan”.