2.0.7: inherit permissions = yes breaks setting read-only on files

Cole, Timothy D. timothy_d_cole at md.northgrum.com
Thu Aug 24 16:22:33 GMT 2000


> -----Original Message-----
> From:	Michael Ju. Tokarev [SMTP:mjt at tls.msk.ru]
> Sent:	Thursday, August 24, 2000 10:41
> To:	Robert Dahlem; samba-technical at samba.org
> Subject:	Re: 2.0.7: inherit permissions = yes breaks setting
> read-only on files
> 
> = Almost all mkdirs are "broken" (or, maybe better, my understanding of
> this was broken).
> 
> = Supporting setting high-order bits with chmod have security troubles;
> sticky-bit is only safe one to set here using chmod.
> 
> = There is no need to chmod if mode does not contain high-order bits,
> moreover, it will fail on some situations (like my example with
> msdos fs on linux).
> 
> = Maybe there are other systems that have really broken mkdir (that
> maybe ignores mode completely?), and for that systems we probably
> can have some workaround.  I can't agree with this myself, since
> that broken mkdir if it exists should be fixed at the first place.
> 
	I've been thinking about this for a while now -- shouldn't this be
fixed at the sys_mkdir rather than the dos_mkdir level?




More information about the samba-technical mailing list