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

Thu Aug 7 00:40:14 UTC 2008
Keld Jørn Simonsen <keld at dkuug.dk>

On Wed, Aug 06, 2008 at 04:38:34PM -0700, H. Peter Anvin wrote:
> Keld Jørn Simonsen wrote:
> >>
> >>What do you guys do?
> >
> >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.
> >
> 
> Why not use xinetd?  That's what it's designed to do.

I have had trouble with the stability of xinetd


best regards
keld