Storing ownership / device nodes without root

Wesley W. Terpstra wesley at
Fri Oct 27 01:55:09 GMT 2006

On Oct 26, 2006, at 5:45 PM, Wayne Davison wrote:
> I think this would be a useful thing to support.  I don't like the
> options tied in to source/dest, though as that makes it harder to
> reverse a copy.  I think that adding a single option, --fake-super
> (since we already have --super) that does not get forwarded to the
> other side would be all we'd need.

Right. That would be better.

> The user could then run this:
> rsync -av --rsync-path='rsync --fake-super' host:/src/ /dest/
> rsync -av --rsync-path='rsync --fake-super' /src/ host:/dest/
> to affect the remote side.  Then, we'd just add a daemon config option
> that would allow the config file to choose if the daemon side should
> run in fake-super mode or not.

Here's a preliminary patch:
-------------- next part --------------
A non-text attachment was scrubbed...
Name: fake-super.patch
Type: application/octet-stream
Size: 16782 bytes
Desc: not available
Url :
-------------- next part --------------

There are a couple bits I think belong in xattrs.patch instead.
Specifically, storing EAs before ACLs in rsync.c and including the  
removexattr method.

I am a bit puzzled why -a sends the owner, but not the group to my  
remote fake super rsyncd. To get the group sent I either have to be  
root on the client-side or use --super.

Please let me know what I've gotten wrong!

More information about the rsync mailing list