Created
July 20, 2015 23:34
-
-
Save gjpalau/500258474096dbaf83b4 to your computer and use it in GitHub Desktop.
This script should take care of any issues with the keychain by making sure it has been completely removed, so that it will be created from scratch when a new user logs in.
This file contains 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