[wplug] rsync and preserving owner/group

Kuzman Ganchev kuzman at sccs.swarthmore.edu
Sun Jul 6 14:25:18 EDT 2003


On Fri, Jul 04, 2003 at 09:25:05AM -0400, Andrew Biggadike wrote:
> I'm using rsync through ssh to backup certain directories of my laptop
> to my desktop, but it doesn't preserve the owner and group of my files. 
> The man page states that typically only root can set file ownership.
> 
> What would be the most secure way of configuring this so I can preserve
> file ownership and group settings?  Logging in as root doesn't seem like
> a great idea.  

Afaik, what this means is that only root can change the ownership of
files -- so you would need to run rsync as root, but can connect as a
normal user on the remote host. The problem is that as a mormal user,
you cannot create files that are owned by anyone else (otherwise you
could make a suid bash and chown it to another user). 

Kuzman




More information about the wplug mailing list