site_archiver@lists.apple.com Delivered-To: installer-dev@lists.apple.com Dkim-signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=gamma; h=domainkey-signature:received:received:subject:mime-version :content-type:from:in-reply-to:date:cc:content-transfer-encoding :message-id:references:to:x-mailer; bh=DKMrCjI0UdH6q1EL2ZUilTzscxDhyzzEaWt0uExxxmY=; b=SNl7a0u8RFKCjm0ZU3nyOMEaZ9CKouyQduNTnBxl4Jb0XEn5OkNlIiKjRZN8dokntW q/lqxuLqfg03QyTY5qVf5hCShR3Ks18EW/xr/V9hm7RZ3y0aHY9saLfgHbmOcpUWuLFC 4zfxW5JuESK6NMckvKU/QDpqhidoleNSHLsWc= Domainkey-signature: a=rsa-sha1; c=nofws; d=gmail.com; s=gamma; h=subject:mime-version:content-type:from:in-reply-to:date:cc :content-transfer-encoding:message-id:references:to:x-mailer; b=GKEvoMv7Wh9e6QIki42Jtu0qZL2fkDh4Z9TTLCPHGbsO/0jE+whKybokHrF8xt7wrI z2zN3yvTjmmglSOhq3dqwkdqAq4CUW0kD4BHQy5OYhemM3Aa+QugDlaKAdsQ32miXcS9 im1kUI4WvFo1hdaAg3OGp0XtRyUHY53NM78Vw= Per Olofsson <per.olofsson@gu.se> wrote:
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
Hi Per, * The installer places the file(s) in the User Template, that should take care of accounts created later. * Users all have local home directories (we use "Create Local Account" in Directory Services). * Good point re: Filevault...hadn't thought of that scenario...hmmm... Thanks for all the great feedback! Don _______________________________________________ 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