Robson Vitor Mendonça
2019-Oct-03 12:25 UTC
[Samba] Primary group is 0 and contains 0 supplementary groups
Hello! I thought this was a mistake, sorry. So I created the shared directories and defined which groups can access this directory and includes the users in the defined group. However, the user defined in the group cannot access the directory, gives access denied. Take a look at the settings, if you can give me a direction of where my error is. # smb.conf [SHARE] comment = SHARE path = /dados/share read only = no inherit acls = yes valid users = @"TCO\Domain Admins" @"TCO\group01" write list = @"TCO\Domain Admins" @"TCO\group01" # getfacl /dados/share getfacl: Removing leading '/' from absolute path names # file: dados/share # owner: root # group: domain\040users # flags: -s- user::rwx group::rwx group:group01:rwx mask::rwx other::--- default:user::rwx default:group::rwx default:other::--- Thanks! Atenciosamente, Robson Vitor Mendon?a
Rowland penny
2019-Oct-03 13:01 UTC
[Samba] Primary group is 0 and contains 0 supplementary groups
On 03/10/2019 13:25, Robson Vitor Mendon?a via samba wrote:> Hello! > > I thought this was a mistake, sorry. > > So I created the shared directories and defined which groups can access > this directory and includes the users in the defined group. However, the > user defined in the group cannot access the directory, gives access denied. > Take a look at the settings, if you can give me a direction of where my > error is. > > > # smb.conf > [SHARE] > comment = SHARE > path = /dados/share > read only = no > inherit acls = yes > valid users = @"TCO\Domain Admins" @"TCO\group01" > write list = @"TCO\Domain Admins" @"TCO\group01" > >Can you please 'reply' to posts, you are breaking the thread by making new posts every time ;-) Try it like this: ? valid users = Domain Admins group01 ? write list = Domain Admins group01 Can I also suggest you read the smb.conf manpage, you have numerous unneeded and incorrect lines, you shouldn't set 'password server' for instance. You will also be better off setting the permissions from Windows, see here: https://wiki.samba.org/index.php/Setting_up_a_Share_Using_Windows_ACLs Rowland
Reasonably Related Threads
- Primary group is 0 and contains 0 supplementary groups
- Primary group is 0 and contains 0 supplementary groups
- Primary group is 0 and contains 0 supplementary groups
- scp problem
- Unable to get primary group information when using AD authentication with samba-4.10.4