Skip to main content
Question

Clearing ALL Internet Passwords

  • April 25, 2018
  • 2 replies
  • 8 views

Forum|alt.badge.img+2

I'm looking at ways to clear out all the internet and application passwords from user keychains without actually blowing away the login keychain. We have user level certificates that have to be preserved.

Thus far I know how to find the logged in user, and I know how to generally find the keychains. However finding the saved passwords is proving to be a pain in the ass. Anyone out there doing anything along these lines?

Right now I'm using:
- userid=/bin/ls -la /dev/console | /usr/bin/cut -d " " -f 4 | tr 'A-Z' 'a-z' to find the user
- security and find-internet-password -a to try and find the passwords based on accounts determined above

Any ideas would be appreciated.

2 replies

Forum|alt.badge.img+2
  • Author
  • New Contributor
  • April 26, 2018

Bumping back toward the top.

No-one has any ideas?


Forum|alt.badge.img+6
  • Contributor
  • April 27, 2018

Don't know what exactly you want to do… you'll have the user to grant access for deletion… did you find any help in this discussion or this kind of post ?
Is it not easier to recreate an empty keychain with only certificates ? Even if it is from a dump ?