dos_mkdir(), was: 2.0.7: inherit permissions = yes breaks setting read-only on files

Robert Dahlem Robert.Dahlem at gmx.net
Sun Aug 27 22:01:17 GMT 2000


Helge,

On Sun, 27 Aug 2000 19:09:36 +0200, Helge Blischke wrote:

>> Sorry, if I missed your point but I think you missed the point. :-)
>> 
>> The problem we were originally talking about exists only when 
>> upper_dir already exists and is world- (or scott-) writable, for 
>> example when creating subdirectories in /tmp.
>> 
>> For point (1) you are right only as long as ~joe is not writeable 
>> for scott, but that's not the critical point. World and/or group 
>> writeable directories are the point and this can be handled with 
>> the sticky directory bit. No need for any emulation as far as I can 
>> see it, but I'm always willing to learn. :-)

>I think the original problem was the "broken mkdir", i.e. the fact 
>that most UNIXes ignore the high order bit of the mode, so that the 
>newly created dir is accessible by others just between the mkdir and 
>the following chmod setting the sticky bit.



More information about the samba-technical mailing list