Preventing non-root users from transferring root owned files

rcorujo rcorujo at
Thu Apr 5 18:54:19 GMT 2007


It seems that a non-root user is able to copy root owned files.  By that I
mean a file that has "400" permission, for example.

rsync <server_host_name>::base_image/etc/<root_owned_file> .

The "rsyncd.conf" file has "uid=root" and "gid=root".

What options do I need to use so that root can copy root owned files, but
non-root users cannot copy root owned files?  That is, how do I get rsync to
honor file permissions the same way that the "cp" command would?

Thank you.


View this message in context:
Sent from the Samba - rsync mailing list archive at

More information about the rsync mailing list