[Samba] Permissions assignment problem

David B Harris dbharris at eelf.ddts.net
Mon Apr 4 18:26:13 GMT 2005

On Mon Apr 04, 10:39am -0700, Jeremy Allison wrote:
> On Fri, Apr 01, 2005 at 03:11:01PM -0500, David B Harris wrote:
> > I've found that I can't change the permissions on files to arbitrary
> > values; they must not be greater than the bits specified in 'create
> > mask' (and friends). The problem appears to be
> > source/smbd/trans2.c:795 (function unix_perms_from_wire); I think it's
> > applying lp_create_mask unconditionally (instead of just applying it
> > when a file's being created - I suppose it doesn't know one way or
> > another, of course).
> Yes, this is by design. If you want full client control over the
> mode bits on a share you must set 
> create mask = 0777

Hmm, okay - that, at least, explains why that's the way it works :)
Thanks for the reply. Out of curiosity, though, do you know of any way
to give full client control over the mode bits _without_ also
effectively forcing the client's umask to 000? (Or is this a problem
with the Linux cifs client module?)

     Arguing with an engineer is like wrestling with a pig in mud.
	   After a while, you realise the pig is enjoying it.

		   OpenPGP v4 key ID: 4096R/59DDCB9F
    Fingerprint: CC53 F124 35C0 7BC2 58FE  7A3C 157D DFD9 59DD CB9F
	  Retreive from subkeys.pgp.net or risk key corruption

More information about the samba mailing list