We have started using ACLs on our fileserver and we are having a problem with getting Samba to behave correctly. When we create a file in Linux, the permissions and ACLs are set correctly. Files are set to 640 and directories are set to 750. However, when we create it in Windows through Samba, regular files are being set with 650 and directories are set to 770. It's adding execute on files and execute+write to directories for groups!

The actual problem is samba not adding the correct mask. When I create a file in unix, the mask for files is correctly set to rw-. However, when I create a file in Windows, the mask for files is being set to rwx instead of rw-

01-27-2010

scathefire

So I guess the question now would be is the thing actually mounting the share with ACL permissions:

Code:

mount -t ext3

It should have something like:
/dev/sda2 on / type ext3 (rw)

If you have your samba share on a separate mount point, the you might see something like:

Code:

/dev/sdb2 on /point/sambaroot type ext3 (rw, acl)

Then that means its going to obey ACLs, and all those masks you assign are going to do nothing. In which case you should be able to set nt acl support to 'no'.

Adjust those commands to whatever filesystem type you are actually using.