[Samba] No group write permission

Paul Muaddib
2021-03-27T12:31:47Z

Hi

I have one shared folder [data] that is shared by multiple users. Inside
this share are multiple folders with different group permissions. But the
group permissions are bing ignored. For example when User2 wants to open
?test.docx? in the folder data/share then there is no write permission in
windows although there is group write permission.

I am using FreeBSD 12, filesystem is ZFS and Samba 4.13. ZFSACL is not
enabled.
I am fine with POSIX access control.

Here is the example

User:
user1, user2, user 3

Group and group members
fileserver = user1, user2, user3
sales = user1, user2
purchase = user1, user3

../fileserver/data
drwxr-x---  27 fileserver  fileserver     27 14 Aug.  2020 .
drwxr-xr-x   7 fileserver  fileserver      7  1 Sep.  2020 ..
drwxrws---   4 fileserver  sales        8391 12 M?rz 13:15 offers
drwxrws---   4 fileserver  fileserver     12 12 M?rz 15:15 share
drwxrws---   2 fileserver  purchase     9015 12 M?rz 12:53 orders

../fileserver/data/share
drwxrws---   4 fileserver    fileserver       12 12 M?rz 15:15 .
drwxr-x---  27 fileserver    fileserver       27 14 Aug.  2020 ..
-rwxrws---   1 user1         fileserver    21662  4 M?rz  2015 test.docx

smb4.conf
[data]
        path            = /fileserver/data
        valid users     = @fileserver, @sales, @purchase
        write liste     =  @fileserver, @sales, @purchase

        browsable       = yes
        writable        = yes
        read only       = no
        guest ok        = no
        public          = no
        follow symlinks = yes
        wide links      = yes
        create mask             = 0770
        force create mode       = 0770
        directory mask          = 2775
        force directory mode    = 2770
        hide unreadable = yes
        crossrename:sizelimit   = 50