[CentOS-mirror] rsync file ownership

Wed Oct 28 21:11:27 UTC 2009
Kevin Stange <kevin at steadfast.net>

David Richardson wrote:
> On Wed, 28 Oct 2009, Matt Ruzicka wrote:
>> I'm in process of putting together a public mirror and noticed the 
>> ownership on my files seem to keep swapping between uid/gid 502, 503 and 
>> I think I've seen 500 as well.  The mirror howto suggests using rsync 
>> with -aqzH, which of course is going to retain the permissions of the 
>> synced files.  Do others just put up with the ownership changes or are 
>> they splitting up the -a option into only some of its parts?
> On mirror.chpc.utah.edu, I don't have the ownership bouncing, because I 
> don't run the rsync as root.
> I run the rsync as the user "mirror". All the files are owned by "mirror". 
> I then have httpd run as user httpd and rsyncd as user rsync.

We do this as well on mirror.steadfast.net (though we don't run rsyncd).
 There's no reason you should need to run your rsyncs as the root user.

Kevin Stange
Chief Technology Officer
Steadfast Networks
Phone: 312-602-2689 ext. 203 | Fax: 312-602-2688 | Cell: 312-320-5867

-------------- next part --------------
A non-text attachment was scrubbed...
Name: signature.asc
Type: application/pgp-signature
Size: 261 bytes
Desc: OpenPGP digital signature
URL: <http://lists.centos.org/pipermail/centos-mirror/attachments/20091028/96c0b40e/attachment-0004.sig>