I'm needing to automate mounting a dmg and then copying specific files and folders from it to the current user's profile. Copying seems to the easy part. The hard part(for me anyways) is finding a way to do this that will inherit the ownership and group of the destination. I've looked at cp and rsync and am not seeing any way to do this although I'm willing to admit it's quite likely staring me in the face. I know this can't be some stupid, impossible task so what am I missing?
Note that this will be done with Casper in a policy with a script so the copy process would be done as root I believe.
