Note: I'm not able to test this so I don't know if a backup will reintroduce the same problem. Also note that this is more of a blunt instrument approach
Firstly, I can't speak directly to the terminal logs. Someone may have a more sublime approach using that information.
If you have a Time Machine backup, you can reinstall OS X following these instructions (from this page). Once a clean Yosemite install is ready, you can migrate your user settings and data using Time Machine.
Clean Install OS X Yosemite
It’s time for a clean install. We’re going to show you how to do it without using a USB drive, which makes it much easier and less confusing. So to start, you should download OS X Yosemite from the Mac App Store. Once it’s finished downloading, it’ll immediately load up on your screen. Follow the instructions to install OS X Yosemite. Once it’s done, it’ll ask you to restart your Mac. Do it, and once it’s loaded up, we’ll start the clean install process:
- We’re going to restart your Mac again. But this time, hold down Cmd+R. (Keep holding it down while it restarts, do not let go)
- Now, your Mac should load a screen with a few options (you can let go of Cmd+R now).
- Select the Disk Utility option.
- In the window, at the top of the left bar, select your Mac’s Main Drive. It should be something like MainHD.
- Now, select the Erase tab, located next to the First Aid button at the top-center.
- Near the center of the window, select the Format drop-down list and select “Mac OS X Extended (Journaled)” as the type.
- Click Erase (this will erase your main drive!) and allow some time for the drive to format.
- When it’s finished, close out Disk Utility and select “ReInstall OS X” from the menu. It will ask for your Mac App Store password to redownload OS X Yosemite. Give it a minute to do so.
- A new window should pop up and OS X Yosemite should begin to install. If it does not, press back and enter your password again.
- Once again, follow the install instructions and enjoy your newly clean-installed OS X Yosemite.
At this point, you'd migrate your Time Machine backup, and fingers crossed, you will have cleared the password problem.
Here's a beginner's guide to the command line. The single user mode is also like looking in as root - the first user that owns all of the computer historically from a unix perspective.
the $ indicates a prompt where you, the human user can type commands. The system is telling you how to prepare the drive for running the repair command.
Type the following text - the same as the first line you are told to from the screen:
/usr/sbin/fsck -fy
Note, that every space, every punctuation is exact and changing any one item may run an entirely different command. If the fsck
command has any errors, you can and should run it again with the same command up to three times in a row or more in some rare cases.
To get out of that screen, you could halt
the Mac or type exit
to resume the normal start up process.
Apple documents the root user and fsck in these two articles if you are curious or wish to learn more:
Best Answer
I called apple support team for further help. They took required information from me and helped to reinstall OS. My data is erased as previously i did not kept any backup and after reinstallation it was like new MAC machine.