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=arjTfDYesim42cxmHcbQ3qPfxH9D+WFLgsAn3xuaZyo=; b=Ir572SO3rVHTs06abHaTyb2v5/pZKga4FaLoNPOOQydUbZIGbralp8ESxBXsWm8XVv /7a1P9H3o+1elJf3tBW7zfsyVbiaSKb7G05pI7BGL0UFFm5zZX2CGoQnZ3wrr8x14oqT i9dmrPiAiUeKagvAj6ocWosnEVkpw2Egcms1k= 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=S9E+GnN4Opb6xZZ941wSVHtlCfLZFUX8sOZgZ9XGyyRTbUmxkhqrdZN016HVUnCeD+ U2oxdiJ1loTRpnOZmf4IS1KpOhTH+XgeB5NKkJkWr8dQunHf1qQVU+i0ZuEo5dpy4tbh GAsy9HSMBj+LVEJ27Q3Pc6zidj4ZTUoONzKNU= On Nov 3, 2010, at 5:55 AM, Jason Pelletier wrote:
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
Jason
Awesome, thanks for the nugget Jason! :) 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