[NBLUG/talk] Maintaining ownership of files

nicolas vigier boklm at mars-attacks.org
Mon Jul 18 03:17:29 PDT 2005


On Sun, 17 Jul 2005, Todd Cary wrote:

> When I do
> 
>  scp -rp * 192.168.0.12:/home/mydir
> 
> I lose the ownerships; they become "root".

That's because you use the root account on the remote machine to send
the files. The files are owned by the user you use to send the files.
And there doesn't seem to be an option with scp to keep ownerships,
you'll have to do that yourself (after checking the UIDs are the same
on both systems).

Nicolas




More information about the talk mailing list