[NBLUG/talk] Maintaining ownership of files

Todd Cary todd at aristesoftware.com
Mon Jul 18 07:17:15 PDT 2005


Nicolas -

Since it has been over two years since I moved /home from one machine to 
another, I had forgotten that I made a tarball with the "-p" option.  
Your response jarred my foggy memory.

Thanks....

Todd

nicolas vigier wrote:

>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
>
>
>_______________________________________________
>talk mailing list
>talk at nblug.org
>http://nblug.org/cgi-bin/mailman/listinfo/talk
>
>
>  
>



More information about the talk mailing list