rsync server: "incoming chmod" usage

rsync at catcons.co.uk rsync at catcons.co.uk
Fri Dec 17 08:36:46 MST 2010


> -----Original Message-----
> From: 4wayned at gmail.com [mailto:4wayned at gmail.com] On Behalf 
> Of Wayne Davison
> Sent: 17 December 2010 11:31
> To: rsync at catcons.co.uk
> Cc: rsync at lists.samba.org
> Subject: Re: rsync server: "incoming chmod" usage
> 
> On Wed, Dec 15, 2010 at 6:54 AM, <rsync at catcons.co.uk> wrote:

> I've been meaning to make octal numbers work with --chmod, so 
> I just checked that into git on the master (3.1.0dev).
> 
> 	incoming chmod = Du=rwx,g=rx,o=rx,Fu=rw,g=r,o=r
> 
> Most of those apply to both directories and files, and thus 
> override each other.  I think you want this:
> 
>   incoming chmod = Du=rwx,Dgo=rx,Fu=rw,Fgo=r
> 
> Or, specified another way:
> 
>   incoming chmod = a=r,u+w,D+x
> 
> ..wayne..

Thanks Wayne  :-)

Will enjoy being able to use octal modes in 3.1.x.

Wrongly I understood that each chmod mode after a D applies to directories
and F to files. Thank you for taking the time to show the right and minimal
ways.

I tried to think of text to suggest for the rsync man page but the best I
came up with is changing "item" to "MODE" for closer alignment with the
chmod(1) man page and changing the example from Dg+s,ug+w,Fo-w to
ug+w,Dg+s,Fo-w.

Best

Charles



More information about the rsync mailing list