setuid rsync

Wayne Davison wayned at samba.org
Fri Feb 27 06:48:07 GMT 2004


On Thu, Feb 26, 2004 at 07:30:47PM -0600, Daniel S. Cohen wrote:
> Anyone have any ideas why the setuid rsync is not perserving ownership?

Because rsync doesn't realize it is root, so it doesn't try to chown
anything.  Try the CVS version -- I changed it recently to use geteuid()
and getegid() (when available), so it should work fine as a setuid
program.  Your other alternative would be to edit the 2.6.0 code to use
geteuid() instead of getuid().

..wayne..


More information about the rsync mailing list