My OS X Yosemite is not accepting my password for logging in to my admin account, please help me reset the password.


mount -uw /
rm /var/db/.AppleSetupDone
shutdown -h now
That method only works in OS X 10.6 Snow Leopard.I had what sounds like a similar problem back with the first DP. The prompt for the admin password would not have my username entered and would not accept it when I entered my username or full name with the correct password.
What I ended up doing was rebooting and holding down Command + S to boot into single-user mode. Then entering the following commands:
Code:mount -uw / rm /var/db/.AppleSetupDone shutdown -h now
This will mount your HD, then remove the flag that the first run setup assistant wizard has been completed, and shutdown. I used this to create a new admin account (I named it My Hero). After logging into the new account I changed the password for my old account in System Preferences Users & Groups, then it worked from then on. I kept My Hero around just because. Hopefully it will be helpful to you.
That method only works in OS X 10.6 Snow Leopard.
This is another method that works in most versions.
Restart the Mac, or if already turned off, when you turn it on, hold down Command+R.
A screen will appear asking you for options. Click on Utilities, then click Terminal.
Enter just one command: resetpassword
A GUI will pop up. Click on the volume you want to change the admin password of. Click on the multi-choice button that asks for a user. Pick the admin.
Now, you don't really have to worry because it will not ask you for your password(Apple really needs to step up on their security there). Enter a new password, then reenter it.
Click Save. It will ask you for a confirmation about the keychain.
Then click on the Apple menu and click restart.
The new password will take place.
Just click on the admin account, enter the new password, and you're in.
… seems to open safari …