rsync as root (Was: [CentOS-mirror] New Mirror)

Keld Jørn Simonsen keld at dkuug.dk
Thu Aug 7 00:42:29 UTC 2008


On Wed, Aug 06, 2008 at 04:52:16PM -0700, H. Peter Anvin wrote:
> Keld Jørn Simonsen wrote:
> >
> >I would also like to run rsync as non-root, although I run it as root
> >now.
> >
> >I would like to do:
> >
> >start rsync standalone
> >connect to port 873
> >possibly chroot
> >run as nobody
> >
> >Is that possible? I understand that rsync changes from root to some
> >non-root uid when it starts transferring, but in the mode where it
> >processes commands there is a window of opportunity to make it do things. 
> >I would then like to close that window.
> 
> Nevermind the previous message.  If you want to chroot, you have to run 
> as root -- capabilities could be used to close that hole, though, but I 
> don't think that's supported in rsync yet.

That is what I read too from the documentation.
So one could possibly ask the developers for a patch (or do it myself)?

best regards
keld



More information about the CentOS-mirror mailing list