Is there a way to copy files from one unix server to another and retain the owners. I have used the rcp -pr and am able to retain dates and permissions, but the owner is coming across as the person who is doing the rcp.
i do not use the r-cmds since a lot of years,
supposed on the remote sys the user is known, the option '-r'
should work. if not, the simpliest way to do it, without using ch[mod|own] is:
tar cfv file2send <the files to copy>
transfert ftp|ssh|rcp file2send
and untar this file
rsh host tar xfv file2send
------------ jamisar
Einfachheit ist das Resultat der Reife. (Friedrich Schiller)
Simplicity is the fruit of maturity.
xvfp file2send
p = preserve uid...
------------ jamisar
Einfachheit ist das Resultat der Reife. (Friedrich Schiller)
Simplicity is the fruit of maturity.
Hi
You'll have to get the owner (ls -l and cut -c16-24)
then rcp -pr User@Hostirectory.
Least, that's what I'd do - unless someone knows better !
;-) Dickie Bird
db@dickiebird.freeserve.co.uk
This site uses cookies to help personalise content, tailor your experience and to keep you logged in if you register.
By continuing to use this site, you are consenting to our use of cookies.