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
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
tar xpBvf -
unfortunatelly tar options highly depend on the UNIX flavior,
you'va to tell us you UNIX.
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
membership
This solution is only available to members.
To access this solution, you must be a member of Experts Exchange.
ASKER