Permission issue while using rsync.

Matt McCutchen matt at mattmccutchen.net
Fri Dec 7 18:20:32 GMT 2007


On Fri, 2007-12-07 at 12:35 +0530, vasumg at gmail.com wrote:
> Curiously, whatever be the file permission it masks the group and
> users to 00 and retains the perm for owner.

> However, If we add the -p bit to rsync, it's retaining the
> permissions.

This is strong evidence that the umask seen by the receiving rsync
process may not be what you expect.  To find out what the umask is, run
something like:

ssh mcstrans at hostname umask

It might also be helpful to strace the receiving rsync by passing
--rsync-path="strace -f -o /tmp/rsync.log rsync" .

Matt



More information about the rsync mailing list