03-22-07 12:20 AM
"miles" <my_spam_account@shaw.ca> writes:
> I must be doing something wrong. First off, I added the -p flag.
>
> When I scp a file from my AIX fileserver to another AIX or HP-UX
> server, the final user and group are, 0 0, ie. root:system (AIX) or
> root:sys (HPUX).
>
> Here is my test file:
> ls -l pasdvu.htm
> -rw-r----- 1 pasdev oradba 17959 Mar 21 13:57 pasdvu.htm
>
>
> Here is the command line I'm running:
> scp -p /home/orasa/pasdvu.htm hpuxserver:/home/orasa/pasdvu.htm
>
>
> Here is the end result:
> ls -l
> -rw-r----- 1 root sys 17959 Mar 21 13:57 pasdvu.htm
>
> Thanks Miles
-p Preserves modification times, access times, and modes
from the original file.
Note that it makes no mention of file ownership, however.
Curious if
scp -p /home/orasa/pasdvu.htm orasa@hpuxserver:/home/orasa
does what you want?
--
Todd H.
http://www.toddh.net/
[ Post a follow-up to this message ]
|