Re: Push a plist file to all users - ownership question
site_archiver@lists.apple.com Delivered-To: installer-dev@lists.apple.com Thread-index: AQHLexhedQev2TEV5kCJGgKBqxcoPZNfTWuA Thread-topic: Push a plist file to all users - ownership question 3 nov 2010 kl. 06.31 skrev Don Montalvo:
We have a plist file we need to push out to the User Template and all existing users. We can push them easily to the User template since we know the plist files need to be owned by root:wheel. However, putting a copy of this file in each existing user's home directory is proving to be a challenge.
How about a LoginHook: #!/bin/bash LOGINUSER="$1" PREFS=`eval echo "~$LOGINUSER/Library/Preferences"` UIDGID=`stat -f "%u:%g" "$PREFS"` if [ ! -e "$PREFS/com.example.pref.plist ]; then cp "/Library/Application Support/IBetItsAJavaApp/com.example.pref.plist" "$PREFS/" chown "$UIDGID" "$PREFS/com.example.pref.plist" fi -- Per Olofsson System Administrator, ITS, University of Gothenburg _______________________________________________ Do not post admin requests to the list. They will be ignored. Installer-dev mailing list (Installer-dev@lists.apple.com) Help/Unsubscribe/Update your Subscription: http://lists.apple.com/mailman/options/installer-dev/site_archiver%40lists.a... This email sent to site_archiver@lists.apple.com
participants (1)
-
Per Olofsson