Skip to main content
Question

Deleting login keychain in macOS Sequoia

  • Feb 7, 2025 4:58 PM UTC
  • 4 replies
  • 735 views

Jason33
Forum|alt.badge.img+13

How are we to troubleshoot Keychain issues, if we cant open Keychain Access.app if the users password isnt working? I've tried deleting the db in ~/Library/Keychains/ and rebooted, but that didnt help. This guy is getting prompts for login keychain for any non-browser app, including Self Service. Typically, in Sonoma and below we'd delete the login keychain in Keychain Access, delete the folder in ~/Library/Keychains then reboot, and at next login the user is prompted to create a new keychain. That aint happening now, and I'm banging my head against the wall trying to figure this out.

4 replies

mvu
Forum|alt.badge.img+25
  • Jamf Heroes
  • Feb 7, 2025 6:42 PM UTC

Did you get all the .db files in the Keychain folder?

Could try a script to clean it out:
https://community.jamf.com/t5/jamf-pro/repair-we-encountered-an-error-while-adding-account-please-try/td-p/332106


Jason33
Forum|alt.badge.img+13
  • Author
  • Honored Contributor
  • Feb 7, 2025 8:09 PM UTC

This is for the users login keychain, located in ~/Library/Keychains. And yep, in that directory I had him manually move everything to the trash. I havent yet tried /Library/Keychains - I think that is where the system keychains are stored, but could give it a shot. Guys machine aint workin' as it is.


Jason33
Forum|alt.badge.img+13
  • Author
  • Honored Contributor
  • Feb 9, 2025 5:00 PM UTC

Ended up just deleting everything in ~/Library/Keychains, rebooted, and the user was prompted to create a new keychain. Everything's working as it should be now. I should have just gone that route to begin with


Forum|alt.badge.img+11
  • Valued Contributor
  • Feb 12, 2025 7:21 PM UTC

here is a user friendly script I wrote for just such an occasion.  Can be delivered via SS

https://github.com/ScottEKendall/JAMF-Pro-Scripts/blob/main/ResetKeychain.sh