Skip to main content
Question

Deleting login keychain in macOS Sequoia

  • February 7, 2025
  • 4 replies
  • 295 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+20
  • Jamf Heroes
  • February 7, 2025

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
  • February 7, 2025

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
  • February 9, 2025

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+9
  • Valued Contributor
  • February 12, 2025

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