Keychain fills with 500k login.keychain.sb files filling drive ... revisited

Hi

Spotted this issue recently on 2 iMac recently upgraded to ventura. It transpires that for some reason the login keychain (and metadata keychain) got set to read only.

To check this, in terminal, type


sudo ls -la ~/Library/Keychains/login.keychain-db


if the start of the line responded is r--r--r--@ (i.e. not starting rw-) then the following should fix it


sudo chmod 644 ~/Library/Keychains/login.keychain-db


following this the check should show rw-r--r--@ ... the @ may not be there.

same for the metadata keychain if this is an issue


That sorts the issue, but doesn't explain why it happened.


To clean the spurious data..


sudo rm -f ~/Library/Keychains/login.keychain-db.*


if it complains too many files, then you'll need to repeat, adding another character before the *. sequentially, 0-9 then a-f.


Hope this help

John


iMac (2017 – 2020)

Posted on May 28, 2023 3:15 AM

Reply
1 reply

This thread has been closed by the system or the community team. You may vote for any posts you find helpful, or search the Community for additional answers.

Keychain fills with 500k login.keychain.sb files filling drive ... revisited

Welcome to Apple Support Community
A forum where Apple customers help each other with their products. Get started with your Apple Account.