Become a MacRumors Supporter for $50/year with no ads, ability to filter front page stories, and private forums.
what is the touch command? and how do you run it?
ty

Open the Terminal app in your Applications > Utilities folder.

Type the following command, then press return

sudo touch login.keychain

It will likely ask you for your admin password when you press return. As you type your password, the cursor will not move. This is normal. Press return after you have typed your password.

Restart your computer. Should be fine.
 
half pwds still missing

macosx.6.8

1. low battery shutdown or crash (dont know) but unattended mac switched off
2. cold boot (was not in sleep/hibernate state obviously)
3. Problem finding wlan and mail passwords after booting
4. checked keychain - error as desscribed - item restricted
5. Clock was set to 1.1.2009

made reboot once more, no errors but missing items in keychain. wlan was missing and clock was still on 1.1.2009

logged on wlan (had pass in a file luckily), set clock, opened keychain and figured that there are many items missing. Tried to verify keychain. No errors or minor errors.

Found this discussion. Tried to locate login.keychain, found to be owned by my user with the date set to 1.1.2009, touched to current. Reboot.

Nothing improved, keychain works fine but I know I have had much more items in it.

Is there some automatic backup?

if not what would be recommendation to backup if this happens again?

also...

codesign -vvv /Applications/Utilities/Keychain\ Access.app
/Applications/Utilities/Keychain Access.app: valid on disk
/Applications/Utilities/Keychain Access.app: satisfies its Designated Requirement
 
Last edited:
RE: touch...

what is the touch command? and how do you run it?
ty

Hi,

The "touch" Terminal command just changes/updates the access and modification times of files. The most common usage is:

touch filename.ext

which changes both the access and modification times for the "filename.ext" to the current time. The touch command can change just one or the other, and a specific time can also be specified. In addition, if the filename.ext does not already exist, touch will create it.

Regards,
Switon
 
Ran into this as well. Was able to fix simply by running Keychain First Aid and repairing. Keychain App -> Keychain Access menu -> Keychain First Aid
 
Register on MacRumors! This sidebar will go away, and you'll see fewer ads.