Skip to content

Commit

Permalink
Add files via upload
Browse files Browse the repository at this point in the history
Shell Script that configures Google Chrome for Kerberos
  • Loading branch information
jontowles authored Sep 28, 2018
1 parent 8336848 commit 30c1e9d
Showing 1 changed file with 14 additions and 0 deletions.
14 changes: 14 additions & 0 deletions Chrome.sh
Original file line number Diff line number Diff line change
@@ -0,0 +1,14 @@
#!/bin/sh
# Variables
loggedInUser=`/bin/ls -l /dev/console | /usr/bin/awk '{ print $3 }'`
loggedInUserHome=`dscl . -read /Users/$loggedInUser NFSHomeDirectory | awk '{print $NF}'`
tld="*.test.com"
# Google Chrome
# backup current file
/bin/cp "/Users/$loggedInUser/Library/Preferences/com.google.Chrome.plist" "/Users/$loggedInUser/Library/Preferences/com.google.Chrome.plist.backup"
/usr/bin/defaults write /Users/$loggedInUser/Library/Preferences/com.google.Chrome.plist AuthNegotiateDelegateWhitelist $tld
/usr/bin/defaults write /Users/$loggedInUser/Library/Preferences/com.google.Chrome.plist AuthServerWhitelist $tld
/usr/sbin/chown $loggedInUser /Users/$loggedInUser/Library/Preferences/com.google.Chrome.plist
# Respawn cfprefsd to load new preferences
/usr/bin/killall cfprefsd

0 comments on commit 30c1e9d

Please sign in to comment.