Client umask settings not horoured in CIFS.

Jeremy Allison jra at samba.org
Mon Feb 5 19:45:57 GMT 2007


On Mon, Feb 05, 2007 at 07:40:39PM +0000, Anders Karlsson wrote:
> 
> Even with create mask set to 7777 and security mask set to 0000, umask
> is being ignored. Stracing the testcase when running it on a ext3 filesystem
> and then on the mounted share show that the open() calls are identical.
> 
> I know the Server enforces permissions, but the files on the share does not
> have write perms stripped for group and others, while on ext3, they do get
> stripped, so I wonder if this is a cifsfs client 'feature'.
> 
> I'll try and dig through the client code, in case this is something I can
> find.

The client code has to guess how to map the mode_t
on create to what the server will use with an NTCreateX
call. This will get fixed with the new UNIX extensions
to allow POSIX opens on the wire.

Jeremy.


More information about the samba-technical mailing list