[Bug 11013] New: [patch] Mention that privileges are dropped, when "use chroot" is enabled in rsyncd.conf manpage

Karl O. Pinc kop at meme.com
Wed Dec 17 08:12:35 MST 2014


On 12/16/2014 08:45:15 PM, Kevin Korb wrote:
> Only root can chown.  If rsync isn't running as root then it ignores
> the --owner part of --archive.  This also makes --numeric-ids inert.
> 
> Simply put, if you aren't running as root then you can only create
> files owned by your UID.  Rsync knows this.  Rsync assumes that if 
> you
> aren't root you didn't intend the --owner (or --group) part of
> --archive and it ignores those features.

Rsync has enough options that it seems it can be smarter than
it's users.  It could be worth adding a --stupid
option to tell rsync to be stupid and complain instead of doing
smart things.  This would help people diagnose just what
rsync is doing.

I'm sure this is a lot more work than it sounds.  There might
be better ways of reporting what's happening
than by complaining. A displayed table of which options are on/off
or have what value comes to mind.  (Too bad that
--stupid would not be the right option name for this.  :-)

Just a thought.



Karl <kop at meme.com>
Free Software:  "You don't pay back, you pay forward."
                 -- Robert A. Heinlein


More information about the rsync mailing list