Push a plist file to all users - ownership question
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:from:content-type :content-transfer-encoding:subject:date:message-id:to:mime-version :x-mailer; bh=TY2yNH3nCuLz78cUTjkzPNOvtmJTc8Eq8QuX6FM/xIo=; b=GHJ4jexqruIeSQa8MAQfpOqkld7x64dHw2ZImERx+oQKXqzmJSnweje0fqlD/qlutx bfX4AuavTxHBW3+eYNOZ67wdNHJXFaBtZLqbLZ2p9Nf6nSoRpLVTVtc2xMNyCKksEsRN vbQslrBSPqjIMCOOZuNLF+AUDOclb9hDxxSEE= Domainkey-signature: a=rsa-sha1; c=nofws; d=gmail.com; s=gamma; h=from:content-type:content-transfer-encoding:subject:date:message-id :to:mime-version:x-mailer; b=fn5fslBG9aVs2NInvEMyJthJDjQ2MXdmAycp90JYXUz3rtaO47PyqN5th838BbrkOL BcyqZ9MXXav3fX3/MTwPN/fXIBlPBIz7IvOeQnp3RBa6/vKcG5BvWlKJf1ZcHlt1aUFN qj3+iYPcitIa4FEJdD8FUVLQGI0Cgrpo6ouDk= 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. We can use ditto to copy the file to each user's home directory: #!/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 done exit 0 But how do we then set the ownership of the file to each respective user? I hope it's something we can add to the above script. Perhaps another loop function? PS, This is a vendor provided plist file that isn't compatible with defaults command, so we have to push the file out to everyone. Thanks, 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
participants (1)
-
Don Montalvo