Mailing Lists: Apple Mailing Lists

Image of Mac OS face in stamp
 
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

RE: Moving a preference to multiple users network homedirs



You could do it with a script pretty easily:

  1. in your home directory create a fileusing terminal: nano cptoall
  2. put the following commands in it

 

#!/bin/sh

FILE_TO_COPY=/full/path/to/preference/file.plist

USER_LOCATION=/Users

 

for i in `ls $USER_LOCATION`; do cp $FILE_TO_COPY “$USER_LOCATION”/”$i”/Library/Preferences/; done

 

  1. then do a chmod 770 cptoall
  2. and sudo ./cptoall

 


From: client-management-bounces+rberrill=email@hidden [mailto:client-management-bounces+rberrill=email@hidden] On Behalf Of Matthew Roe
Sent: Wednesday, November 16, 2005 7:29 AM
To: email@hidden
Subject: Moving a preference to multiple users network homedirs

 

            I have a 4k file (Sibelius preference file) that I need to send out to multiple home folders (~/Library/Preferences).  I tried moving it to the local machines /Library/Preferences folder with no luck..  ( have a call into them to see why this is).

 

            So..  how can I copy a 4k file to a few thousand home directories?  I have tested both the cp and ditto command with no luck..  (it seems to copy to only one then stop.  I did a wildcard at the student number on the copy (/Volumes/XRAID1/2006/*/Library/Preference) and it was of no help.

 

            I am sure I am missing something silly..  I don't see a 'managed preferences' (like we had in MacOS 9/Macintosh Manager) where I can put a pref in one place...  All the desktop machines are 10.3.X thru 10.4.X running Workgroup Manger....  servers are 10.4.3

 

            TIA!

 

Matt

 

"Yes.. I use a Mac"

 _______________________________________________
Do not post admin requests to the list. They will be ignored.
Client-management mailing list      (email@hidden)
Help/Unsubscribe/Update your Subscription:
http://lists.apple.com/mailman/options/client-management/email@hidden

This email sent to email@hidden



Visit the Apple Store online or at retail locations.
1-800-MY-APPLE

Contact Apple | Terms of Use | Privacy Policy

Copyright © 2007 Apple Inc. All rights reserved.