[Samba] Permissions assignment problem
Jeremy Allison
jra at samba.org
Mon Apr 4 17:39:44 GMT 2005
On Fri, Apr 01, 2005 at 03:11:01PM -0500, David B Harris wrote:
> Hey there,
>
> 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.
Jeremy.
More information about the samba
mailing list