Copy preferences to more than one users home folder

hey all
i have up to 800+ users on some of the servers I maintain @ a k-8 school district.
I need to copy new java preferences in to all of there home folders on the server.
I have tried
cp /Users/computerservices/Library/Caches/Java\ Applets/deployment.properties /Users/*/Library/Caches/Java\ Applets/
it seams that you can not use * in a cp destination
from the spike in CPU usage I think it writes the preferences file to the last(alphabetically) user 800 times
my collage professor said that I need a script but I have not had time to get to writing a script
thanks
sam

here is the code for the script I finished on friday
thanks so much for the help Nils
#!/bin/bash
#copy and paste this in to a new vi file and set chmod to 770
#then save it in /bin/
#you will need to run it while root so you have read/write privileges to all of #the users directories
# prefstick 1.0.1
clear
echo
echo -e "Blank responce at any question will exit program."
echo -e "CapiTalIZatioN and Spelling matters when typing file and folder paths"
echo -e "all y/n questions will take yes, no, Yes, No, Y, N, y, n, or that path that you want."
echo
echo -e "Are your users located in \"/Users/\"?(y/n)\c"
read UsrLocQ
case $UsrLocQ in
[Yy]*)
UsrLoc="/Users/"
[Nn]*)
echo -e "Where are your home folders locatied? (i.e. /StudentUsers/) \c"
read UsrLoc
if [ "$UsrLoc" = "" ]
then
echo "goodbye"
exit
fi
UsrLoc=$UsrLocQ
echo "goodbye"
exit
esac
echo
echo "List of all users located in "$UsrLoc
ls $UsrLoc
echo -e "What user has the master preference?(short name)\c"
read MasUsr
if [ "$MasUsr" = "" ]
then
echo "goodbye"
exit
fi
echo
echo -e "Do you want the new preferences saved in \""$UsrLoc"*/Library/Preferences/\"?(y/n) \c"
read UsrSubDirQ
case $UsrSubDirQ in
[Yy]*)
UsrSubDir="/Library/Preferences/"
[Nn]*)
echo
echo -e "What is the sub directroy for the preference? (i.e. /Library/Safari/) \c"
read UsrSubDir
if [ "$UsrSubDir" = "" ]
then
echo "goodbye"
exit
fi
UsrSubDir=$UsrSubDirQ
echo "goodbye"
exit
esac
echo
MasPrefDir=$UsrLoc$MasUsr$UsrSubDir
echo " list of all items in "$MasPrefDir
ls $MasPrefDir
echo "What preference/preference folder do you want to copy?(i.e. QuickTime\ Preferences or Explorer)"
echo -e " Spaces reqire \ before them."
read MasPref
if [ "$MasPref" = "" ]
then
echo "goodbye"
exit
fi
echo
echo -e "what file permaissions do you want your Preference to have?(I suggest 666):\c"
read MasPrefChmod
if [ "$MasPrefChmod" = "" ]
then
echo "goodbye"
exit
fi
MasPrefLoc=$MasPrefDir$MasPref
chmod -R $MasPrefChmod $MasPrefLoc
clear
echo "Lets review"
echo "You want to copy "$MasPref" from "$MasPrefDir
echo "to all users that fit "$UsrLoc"*"$UsrSubDir
echo "and with the file permissions set to "$MasPrefChmod
echo
echo -e "are you ready to do this? (y/n)\c"
read AreUSure
case $AreUSure in
[Yy]*)
clear
echo "here we go"
echo "goodbye"
exit
esac
MasHome=$UsrLoc$MasUsr
UsrLocShared=$UsrLoc"Shared"
for CpUsr in $UsrLoc*
do
case $CpUsr in
$UsrLocShared)
$MasHome)
$UsrLoc"Icon")
$UsrLoc"Network Trash Folder/")
$UsrLoc"Recent Items/")
$UsrLoc"Starting Points/")
$UsrLoc"Temporary Items/")
$UsrLoc"TheFindByContentFolder/")
$UsrLoc"TheVolumeSettingsFolder/")
$UsrLoc"Users/")
echo $CpUsr
cp -R "${MasPrefLoc}" ${CpUsr}"${UsrSubDir}"
esac
done
echo "Done!"

Similar Messages

  • Using Remote Desktop Admin app in more than one user account.

    Is possible to have the ARD admin app use the same database and settings over more than one user account?
    eg. I have ARD setup on my Mac as I am in charge of our organisations Macs. However if I am away for a few weeks, one of our other techs would be able to turn on my Mac, log in to a generic account, open ARD and it would be set up exactly as I have it in my user account.
    I know that I could manually set up ARD in the other account, but with the number of machines we have I would rather not have to re-enter all those admin passwords all over again, and then have to remember to update ARD in the other account everytime we get a new machine or make other changes.

    In theory, you could simply copy the com.apple.RemoteDesktop.plist into the preferences folder of the other user. Then they would simply have to know the Remote Desktop Password (which is probably stored in your KeyChain.)
    I've never tried this, but it seems like it would work.

  • SMARTFORM: how to create 3 copy (each copy can print more than one page)

    SMARTFORM: how to create 3 copy (each copy can print more than one page)
    Hello everyone.
    my user want to have form that print 3 copy.
    such as 1 copy description = master,  2 copy description = copy 1 ,3 copy description = copy 2.
    so i create 3 page . I copy from page 1.
    and in each page there is main window which can have data more than 1 page.(such as have a lot of sale data ,it's take 2 page for show output .so it's take 2 page in each copy)
    please help me.
    how to set page and window in each page for print 3 copy and each page can have main window that print more than 1 page

    Hello Vinit.
    thank you very much for your help.
    could you help me more please.
    in below code
      DO NAST_ANZAL TIMES.
    l_counter = l_counter + 1.  " << pass this to FM and use for the TEXT to print
    CALL FUNCTION LF_FM_NAME
               EXPORTING
                         COUNTER = l_COUNTER   " USE this to derive the text into PRINTOUT
    enddo.
    Now i out of office .so i cannot test.
    where do i set NAST_ANZAL for 3 ?
    can i input ?
    NAST_ANZAL = 3.
      DO NAST_ANZAL TIMES.
    l_counter = l_counter + 1.  " << pass this to FM and use for the TEXT to print
    CALL FUNCTION LF_FM_NAME
               EXPORTING
                         COUNTER = l_COUNTER   " USE this to derive the text into PRINTOUT
    enddo.
    Edited by: dittaporn nanasilp on Mar 12, 2011 3:33 PM

  • Adobe acrobat xi pro cc - more than one user?

    Is it possible to download adobe acrobat xi pro cc to more than one computer? Can we have more than one  user for a single subscription? Thanks    

    Thanks, Mylenium!
    I don't think that changing the $HOME environment variable during install is very straight forward (unless you can override it in the install script, which is buried in the binary installation package).
    But, you gave me an idea: I will just install Acrobat for everyone using another account.
    Thanks, Again!

  • Can I put more than one user under one Apple ID account. I want to let other family members use imessage on their own Apple device. Or is there another way to get this end result?

    Can I put more than one user under one Apple ID account. I want to let other family members use imessage on their own Apple device. Or is there another way to get this end result?

    You can seach the net for solutions like this one http://appletvvpn.com/how-to-connect-apple-tv-2-to-vpn/ another idea is to use a PC as the control and fit that with a wireless card and set up a ad hoc wireless network that the Apple TV uses. 

  • How we can lock No more than one user can use the table  at a single time

    Hi Abapers,
    0)  which  function modules to lock & unlock a table.
    1) When you execute the program, we can check if there is any lock on this table. If yes, the user should be able to only view the table contents and not modify.
    2) If there is no lock, then lock the table and go into change mode.
    3) On exiting from the program, unlock the table using the function module.
    4) more than one user can't modify the table just display.
    Note: If there is any lock, display message saying table is locked.
    Plz help me for this requirement.
    Thanks
    Nani

    Hello Nani
    Have a look at the lock object EMMARAE (<i>Lock MARA and MARM/MAKT exclusively</i>) in transaction SE11.
    Inspect the F1 help for field <b>Lock mode</b>:
    DE ENQMODE
    Short Text
         Lock mode
    Definition
         Defines how to synchronize table record access by several users.
    The following modes exist:
         Exclusive lock
             The locked data can be read or processed by one user only. A request
             for another exclusive lock or for a shared lock is rejected.
         Shared lock
             Several users can read the same data at the same time, but as soon
             as a user edits the data, a second user can no longer access this
             data. Requests for further shared locks are accepted, even if they
             are issued by different users, but exclusive locks are rejected.
         Exclusive but not cumulative lock
             Exclusive locks can be requested by the same transaction more than
             once and handled successively, but an exclusive but not cumulative
             lock can only be requested once by a given transaction. All other
             lock requests are rejected.
    If you want to lock a standard table search whether the table is used in lock objects (<i>Where-Used-List</i>). If it is a customer table you have to create your own lock object (including two function modules: one for enqueuing and the other for dequeuing).
    The lock modules can be found in menu <b>GoTo -> Lock Modules</b>.
    Given these lock modules the logic should be quite clear after starting the program:
    1. Request lock -> if successful, continue in Change mode; -> if failed, continue in Display mode
    2. Before leaving the report remove lock (note: no problem if no lock has been set in the beginning).
    Regards
      Uwe

  • How Do I Share My Database Between More Than One User Account on the Same Mac?

    How Do I Share My Database Between More Than One User Account on the Same Mac?

    How to use multiple iPhone, iPad, or iPod devices with one computer. The only way is for you to have a separate user account to log into on that computer.

  • HT201301 How do I "Select All" in a Pages document? I would like to copy and past more than one paragraph at a time.

    How do I "Select All" in a Pages document. I would like to copy and paste more than one paragraph at a time.

    I just tab and hold untill the loop shows then let go and I get the menu with select all in it

  • Can a user facetime with more than one user at a time

    I can use facetime with Macbook and connect to another Macbook user on another WIFI network... I was wondering if one can facetime with more than one user at a time?

    ellis911 wrote:
    I can use facetime with Macbook and connect to another Macbook user on another WIFI network... I was wondering if one can facetime with more than one user at a time?
    Only if you have more than one device running FaceTime at your end.
    Mac Pro Quad Core (Early 2009) 2.93Ghz Mac OS X (10.6.5); MacBook Pro (13 inch, Mid 2009) 2.26GHz (10.6.5)
    LED Cinema Display; G4 PowerBook 1.67GHz (10.4.11); iBookSE 366MHz (10.3.9); External iSight; iPod4touch4.2.1

  • How can I see if my program is for more than one user? We think we have bought in design for more users, but can not find out how to get in for more than one?

    How can I see if my program is for more than one user? We think we have bought in design for more users, but can not find out how to get in for more than one?

    If you bought a CC for team, you can log in at http://adobe.com and insert the e-mail that you gave at the moment at the purchase and than you can manage and see you product/plan/team.
    If I was not clear you can use the following link to help you solving your issue:
    Creative Cloud Help | Manage your Creative Cloud for teams membership
    If your not clear about this situation, contact with an agent of Adobe, by chat or phone. Use the following link to see the type of support you have on this matter:
    http://adobe.com/getsupport
    I think this will help you.
    Regards

  • Can we start more than one user created database at the same time

    Hi.,
    Can we start/work more than one user created database at the same time ??
    --Shyam                                                                                                                                                                                       

    Hi Shyam,
    I really dont understand what you have asked?
    If your question is can we start more than one database at the same time then the answer to that is yes but provided to have enough resources on your server to support running of two or more different databases on the same machine.
    Ex Senior DBA

  • Adobe Form used by more than one user simultaneously

    Friends,
    I am working on an online interactive Adobe form using Web Dynpro ABAP.
    once the user enters the data and clicks the submit button, the data is sent to ztables.
    the scenario is that more than one user can possibly use the same form simultaneously. in that case, how can i maintain synchronization ie how to avoid multiple users from using the form at the same time, when the form is already being filled by one user already.
    I am guessing i have to do something with ADS for this.
    Any thoughts or ideas would be greatly appreciated.
    Thanks and Regards.

    Hi Bertrand,
    The purpose of allowing only one user is to ensure data consistency as you have guessed.
    Is there a program name or transaction code where i can look up the lock entries and see if i can apply them to my web dynpro application or the adobe form.
    I would greatly appreciate your help.
    Thanks and Regards.

  • Can we set "IN PROCESS" Status to more than one User

    Hi,
    As per my client current scenario every work item will be sent to 3 useru2019s (One is the supervisor of the other two users). If any one of the user executes the work item it will automatically call a Ztransaction and displays the screen. When any one of the user executes the workitem, then the workitems will dissappears from rest of the users inboxes; Setting "IN PROCESS" status for the person who executed the workitem. The workitem will be in "IN PROCESS" Status untill the User Press "SAVE" button in the transaction.
    If the person whose executed the workitem (IN PROCESS) status, has gone on unplanned leave; then the supervisor wants to forward the workitem of the current user to other user. How can he forward?
    Is there any option to set "In Process" status to more than one User? [Supervisor and Person who executed the workitem]
    Please provide me any advice to the above requirement.
    Thanks in advance,
    Ajay Kumar

    Can you ask your workflow administrator to forward the workitem to the user you want to be sent it to.
    I tried a small case wherein I had forwarded a workitem to myself and another user.
    As I executed it , it went into status IN process and at the same time it got removed from other users inbox .
    Now I went to T Code SWI1 and forwarded iut to another user say USABC.
    As a result the workitem again went into status "Ready" and into the inbox of the user ABC.
    So , you can try this in your case with the help of your workflow administrator.
    Another way is to create the other user as a substitue of the user who is currently executing the workitem.

  • More than one user "using an expression" in a BPM Task

    Hello,
    I want to send a notification step for multiple users. I see two options
    1. Choose one or more UME principals.
    2. Use an expression.
    However I have to send the notification for more than one user using an expression. I'm using this expression, 
    getPrincipal(DO_xyz)
    but this only works for one user. I need something like this
    getPrincipal(DO_xyz);  getPrincipal(DO_xyz2);  getPrincipal(DO_xyz3)
    But this is not possible. I can't use a group because all this information is dynamic and it's born within the process.
    Please, How can I solve this?
    Best Regards
    SU

    Hello Abhijeet,
    I've seen that I can use the getPrincipals adding in the XSD an string with 1..* cardinality. However I don't know how to map an attribute from the UITask to that new attribute in the XSD because in Web Dynpro I can't create an string with cardinality 1..*
    I've tried to create a node (1..*) with a String inside in the UI but I couldn't map it to the process context, it shows me an error that I cannot map a node to a String.
    Thanks
    Regards
    SU

  • Dblink to SqlServer using more than one user...

    Hi All,
    I'm in a migration project, SqlServer to Oracle. I'm using the Transparent Gateway to connect from Oracle to SqlServer, using the database link process.
    When I created the dblink I used the SA (SqlServer sysdba user), and in the future tests I need to connec with others users, not SA.
    Anyone knows how can I create a dblink to connect with more than one user?
    Thanks,
    Gustavo.

    you need to create a new database link.

Maybe you are looking for