[Samba] Permissions assignment problem

Tony Earnshaw tonye at billy.demon.nl
Mon Apr 4 20:52:15 GMT 2005


man, 04.04.2005 kl. 19.39 skrev Jeremy Allison:

> > I am, for the first time, playing around with Samba seriously (mainly
> > thinking about replacing NFS with it). I'm using a Linux 2.6.x client
> > with the cifs.ko kernel module/filesystem type.
> > 
> > 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
> 
> It's a bit of a misnomer, as the parameter was added when we couldn't
> modify individual UNIX permissions from a client. It should really be
> named "mode mask" I suppose.

What about ACLS and the "inherit acls" default?

--Tonni

(Grown to love ACLs)

-- 
Nothing sucksseeds like a pigeon without a beak ...

mail: tonye at billy.demon.nl
http://www.billy.demon.nl
 
They love us, don't they, They feed us, won't they ...



More information about the samba mailing list