Copying root owned directories...

Markus Hitter mah at jump-ing.de
Wed Aug 8 11:35:48 PDT 2007


Am 08.08.2007 um 19:48 schrieb Jerry LeVan:

> I am puzzling over how to elegantly copy a root protected directory
> from one mac to another mac.

Create a tar archive, copy it over, unpack it on the other side.

In principle you could do it with a single line:

sudo tar -C / -cf- myStuff | ssh otherMac sudo tar -xvf-

As you'll notice, the above line won't work, because some "" and ''  
are missing and somehow the password for the second sudo has to be  
typed. I let it up to you to fiddle this out (I have the root  
password enabled here).


Markus

- - - - - - - - - - - - - - - - - - -
Dipl. Ing. Markus Hitter
http://www.jump-ing.de/






More information about the MacOSX-admin mailing list