What permissions does a file take if -p is not set?

Wayne Davison wayned at samba.org
Tue Apr 18 19:02:16 GMT 2006


On Tue, Apr 18, 2006 at 07:13:31PM +0100, hamish at iskmweboffice.com wrote:
> if the rsync options -pgo (preserve perms, group perms, owner perms) are
> not set, from where does rsync attain the file permissions?

This was improved in the 2.6.7 manpage, which is available online (link
below).  Just look for the section on "-p, --perms", and it will explain
how permissions get set both with and without this option.

> Also, what is the difference between -p  and -g or -o ?

The descriptions of -g and -o are being improved for the 2.6.8 release,
which you can read at this URL:

    http://rsync.samba.org/ftp/rsync/nightly/rsync.html

..wayne..


More information about the rsync mailing list