site_archiver@lists.apple.com Delivered-To: installer-dev@lists.apple.com Thread-index: AQHLexhedQev2TEV5kCJGgKBqxcoPZNfhE2AgAAL+QA= Thread-topic: Push a plist file to all users - ownership question 3 nov 2010 kl. 11.55 skrev Jason Pelletier:
If you don't care about the group ownership as much you cam just add a single line to the loop you already have. We do this all the time.
#!/bin/sh # # loop for i in $(/bin/ls /Users) do /usr/bin/ditto /System/Library/User\ Template/English.lproj/Library/Preferences/com.mypreference.plist /Users/$i/Library/Preferences/com.mypreference.plist
chown $i:staff /Users/$i/Library/Preferences/com.mypreferences.plist
done exit 0
Be aware that this does not cover: * Accounts created later. * Network accounts. * Filevault protected accounts. A LoginHook or a script that runs before the app is launched covers all users. -- Per Olofsson, IT-service, 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