Skip to content

Instantly share code, notes, and snippets.

@tempusthales
Created April 19, 2018 01:28
Show Gist options
  • Save tempusthales/43d56ef47c92735358d278e60429ae03 to your computer and use it in GitHub Desktop.
Save tempusthales/43d56ef47c92735358d278e60429ae03 to your computer and use it in GitHub Desktop.
script for cleaning the keychain
#!/bin/bash
\#
\# keychain-clean.sh
\# cleans and disinfects keychains
\#
if [ -d "/Users/default/Library/Keychains" ]; then
/bin/rm -rf /Users/default/Library/Keychains
fi
/bin/mkdir /Users/default/Library/Keychains
/usr/sbin/chown default:staff /Users/default/Library/Keychains
/bin/chmod 700 /Users/default/Library/Keychains
/usr/bin/rsync -a --delete /Users/default/ /System/Library/User\ Template/English.lproj
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment