16630 Views 8 Replies Latest reply: Dec 6, 2007 8:28 PM by koset
thank you for your quick answer. Actually, I checked a very useful book (guess which one or ask me in a private email:<edited by host - please for your protection do not place your email address in the body of a post.> ) and I found the following:
switch on the computer
insert Mac OS install disc
restart the computer while holding down the letter 'C' key
don't bother about the appearing window but select "Reset password" instead from the Installer menu
sorry, I posted the first half of this message by mistake, I continue here:
so you selected "reset password" and gave a new one.
now you can quit the installer if you don't want to reinstall the system.
This solution was very quick and simple but I have to add that it worked because I did not set a master password when I set up the system. Now I have to sign in each time when I turn on the computer, which makes sure that I will not forget the password.
I think this master password thing is not offered when you first switch on your machine (but you can set it if you want to protect your machine strongly), which is very clever.
I am not thinking of setting a master password at all. : )
Thank you again for the quicjk answer, I will save it just to be on the safe side.
VERY CAREFULLY (a mistake can wipe your hard drive), do the following:
1. Boot in single user mode (immediately after pressing the power button, hold S.)
2. Type ($ represents the command prompt, don't type it, (RETURN) means press return, not type it):
$ rm /var/db/.applesetupdone (RETURN)
$ reboot (RETURN)
You will be able to create a new admin account, then from there reset your account's password.
Friends, I did a bonehead thing. I changed my password, but when I went to log in with it, it didn't work. Yes, I'm sure I'm typing it correctly, but alas it still didn't work.
I was able to restore it to the previous password with these steps.
1. Log in with another account that has administrator privilege (or root user).
2. Restore the files in /Library/Keychains using Time Machine. Voila, I had my old password back.
This didn't restore my keychain password. I could have done that too, but I'm using FileVault and it would be more trouble than it was worth to get that back. Without FileVault you can just restore the /Users/myself/Keychains files. With FileVault, I'd have to restore the entire user directory to another location and copy over the files I want. Perhaps I'll do so in another circumstance.
I hope this helps someone else in the same predicament.