Link to home
Start Free TrialLog in
Avatar of tzahi
tzahi

asked on

What should I change in remote shell command line in order to save the users groups and permission

I use the following line in order to copy one directory
 to another directory on another machine.

tar cf - .|rsh <ip address>
 '(cd <destination dir>;tar xBvf -)'

the problem is that all fileswere created with  root as owner.
What can I change in this command in order to transmit the dir with all owners permissions and groups
Avatar of tzahi
tzahi

ASKER

Edited text of question
tar xpBvf -

unfortunatelly tar options highly depend on the UNIX flavior,
you'va to tell us you UNIX.
Try adding the "p" option to tar.  This will preserve the permissions and ownerships.


ASKER CERTIFIED SOLUTION
Avatar of toTo
toTo

Link to home
membership
This solution is only available to members.
To access this solution, you must be a member of Experts Exchange.
Start Free Trial