preserving perms/owner with scp?
Kurt Wall
kwall
Mon May 17 12:02:13 PDT 2004
In a 0.8K blaze of typing glory, Net Llama! wrote:
> On 05/10/04 16:21, Kurt Wall wrote:
> >In a 0.4K blaze of typing glory, Net Llama! wrote:
> >
> >>Anyone know of a way to preserve permissions & ownership when moving files
> >>with scp?
> >
> >
> >scp -p
> >
> >Kurt
>
>
> hrmmm, tried scp'ing files that were owned by another user as root.
> they ended up being owned by root. am i missing something?
Oh, well, that makes sense then. If root makes the copy, root
owns the copy. So, you're doing something like this:
# scp foo bar baz somehost:/home/kwall
root at somehost's password:
foo 100% 0 0.0KB/s 00:00
bar 100% 0 0.0KB/s 00:00
baz 100% 0 0.0KB/s 00:00
Kurt
--
A mathematician is a machine for converting coffee into theorems.
More information about the Linux-users
mailing list