Skip to content

Apple Keychain Permission Problem and Solution

2009-01-16

Suddenly I got a new error message and could not add any items to my keychain. The error message also mentions something on file access…

”An error has occurred. Unable to add an item to the current keychain.” or in swedish ”Ett fel inträffade. Kunde inte lägga till ett objekt till den aktuella nyckelringen.”

The solution was nowhere to be found, but using the terminal, it can be fixed easily by setting the right permissions for the keychain. Somehow, it seems the permissions are wrong. I doubt they have changed, so most likely Apple changed something in Keychain access. But am I just guessing here…

$ cd Library/Keychains/
$ ls -l
total 232
-rw-r--r--  1 root  staff    27K  8 Dec 20:30 yourKeychainName.keychain
-rw-r--r--  1 yourUser   staff    86K 16 Jan 19:38 login.keychain
$ sudo chown yourUser yourKeychainName.keychain
Password:
$ ls -l
total 232
-rw-r--r--  1 yourUser staff    27K  8 Dec 20:30 yourKeychainName.keychain
-rw-r--r--  1 yourUser staff    86K 16 Jan 19:38 login.keychain
Now the keychain works as it should.
No comments yet

Kommentera

Fyll i dina uppgifter nedan eller klicka på en ikon för att logga in:

WordPress.com Logo

Du kommenterar med ditt WordPress.com-konto. Logga ut / Ändra )

Twitter-bild

Du kommenterar med ditt Twitter-konto. Logga ut / Ändra )

Facebook-foto

Du kommenterar med ditt Facebook-konto. Logga ut / Ändra )

Google+ photo

Du kommenterar med ditt Google+-konto. Logga ut / Ändra )

Ansluter till %s

%d bloggare gillar detta: