MacFixIt reader Steffen Hofemann recently inquired:
"I had to re-install Mac OS X 10.4.x on my PowerBook completely fresh and could not keep the old system settings. I made a backup of the content of the hard disk though. How can I use the old keychain settings again? Is there a way to 'import' the passwords?"
Mac OS X keychains can be recovered from full system backups fairly easily. They are stored in the following directory:
- ~/Library/Keychains/ [where ~ is your home user directory]
There you will find files such as:
and other keychains you have created.
As such, if you have created a full backup of your previous Mac OS X startup drive, you will be able to locate and restore these keychains.
Once you've located the appropriate files, use the following steps to restore them on your current Mac OS X installation.
- Open Keychain Access (located in /Applications/Utilities)
- From the "Edit" menu select "Keychain List"
- When the list appears, select the keychain you would like to replace with its backed up version -- usually "login"
- Click the minus (-) button at the bottom of the window to delete the keychain.
- Drag your backed up keychain(s) to ~/Library/Keychains/, replacing the other versions
- Go back to Keychain Access and again select "Keychain List" from the "Edit" menu
- Press the plus ( ) button at the bottom of the window and select the keychain(s) you just placed in the ~/Library/Keychains/ then press "Open"
- Go back to the main Keychain Access Window by pressing either "OK" or "Cancel" depending on whether or not you have made changes. If necessary, choose the keychain you would like to set as default by selecting it from the list in the upper-left corner and choosing "Make Keychain ("name") Default."
For more Keychain tips, see our tutorial "Keychain issues; resolving."Resources