Just add comma ',' if you want multiple valid users. See line that I used below.
valid users = @group1, @group2
Answer from ckknight on Stack ExchangeJust add comma ',' if you want multiple valid users. See line that I used below.
valid users = @group1, @group2
I wound up adding the users from the most restricted group Directors to the Staff and Interns group as well as their original group. Then I added the users from the Staff group to the Interns group as well as their original group.
The line I used was a simple
valid users = @group_name
smb - Samba multi user setup - step by step? - Unix & Linux Stack Exchange
how do I add multiple users to smb extras - General Support - Unraid
multiple users to access same share in samba? | AnandTech Forums: Technology, Hardware, Software, and Deals
SMB share only works in read-only
- In theory unlimited. The hardware is your limit.
- Samba supports a [homes] setting. See chapter 9 in the manual.
[homes] browsable = no writable = yesThe [homes] share is a special section of the Samba configuration file. If a user attempts to connect to an ordinary share that doesn't appear in the smb.conf file (such as specifying it with a UNC in Windows Explorer), Samba will search for a [homes] share. If one exists, the incoming share name is assumed to be a username and is queried as such in the password database ( /etc/passwd or equivalent) file of the Samba server. If it appears, Samba assumes the client is a Unix user trying to connect to his home directory.
That is likely to be the easiest to manage method for lots of users.
We have a users group (GID 100) you can use to group those users and apply settings to that group.
But the more obvious way would be to use active directory if you have that. Setup almost totally on the Windows side and not on the server.
Mind the part in bold.
A simple bash script: (read man seq)
#!/bin/bash
for i in $( seq 1 100 ) ; do printf "%s\n" "[user$i]
comment = user$i
path = /home/user/user$i
writeable = yes
browseable = no
read only = no
create mask = 0774
directory mask = 0777
valid users = user$i
admin users = user12018
"
done