In Linux, I have 2 usergroups A and B with a bunch of users in them, for both of them I have configured a few samba shares. Group A has access to a share, B to another one.
Now I want to hide shares that groups don't have access to, from those users.
In smb.conf, by using browseable = no , and include = /etc/samba/custom/%U.conf, you can hide certain shares that users don't have access to. For user groups however (no primary group), I can't seem to get it fixed. Include = /etc/samba/custom/%G.conf only works for a primary usergroup.
Is there another solution besides changing primary usergroup each time I create a linux/samba user ?
Thanks