> -----Original Message-----
> From: [email protected] [mailto:[email protected]] On Behalf 
> Of Wayne Davison
> Sent: 17 December 2010 11:31
> To: [email protected]
> Cc: [email protected]
> Subject: Re: rsync server: "incoming chmod" usage
> 
> On Wed, Dec 15, 2010 at 6:54 AM, <[email protected]> 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

-- 
Please use reply-all for most replies to avoid omitting the mailing list.
To unsubscribe or change options: https://lists.samba.org/mailman/listinfo/rsync
Before posting, read: http://www.catb.org/~esr/faqs/smart-questions.html

Reply via email to