Hi, Is it possible to request a new feature that will help out some of us doing many mirrors, that is each mirror has their own system uid for security puroposes, it would be of great advantage (to I'm sure very many) to have an option to "save as user" <some_user> rather than have the files/directories only owned by the mirror host side owner/group, or by root. maybe something like a --chown user.group Thanks
On Sat, Sep 13, 2008 at 07:10:53AM +1000, Quey wrote:> maybe something like a --chown user.groupThere is a diff in the patches directory that allows you to do this. If you apply patches/usermap.diff, you can use a command like this: rsync -av --usermap=*:someuser --groupmap=*:somegroup /src/ /dest/ That's not nearly as succinct (due to these options having a lot more flexibility in affecting the users and groups than a single forced setting), so perhaps a built-in option alias would be a good idea for the simple case (one that would map --chown=someuser:somegroup to be the same as the above two options). This is one of the patches that I'm leaning towards adding to 3.1.0. ..wayne..
Quey (qms01@optusnet.com.au) wrote on 13 September 2008 07:10: >Is it possible to request a new feature that will help out some of us >doing many mirrors, that is each mirror has their own system uid for >security puroposes, it would be of great advantage (to I'm sure very >many) to have an option to "save as user" <some_user> rather than >have the files/directories only owned by the mirror host side >owner/group, or by root. > >maybe something like a --chown user.group We host many mirrors and this feature is not at all necessary. Just run rsync with the user that owns that particular mirror. If you want to launch the update as root just use su.