Created
April 19, 2018 01:28
-
-
Save tempusthales/43d56ef47c92735358d278e60429ae03 to your computer and use it in GitHub Desktop.
script for cleaning the keychain
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
#!/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