I'll open by admitting that this topic has confused and frustrated me so much that I would be prepared to pay for a one-off support call just to understand and fix it (unfortunately it looks like I need a standing support contract for that). So I'm going to try posting here.
I have a newly-built TrueNAS Scale server that is replacing an older TrueNAS Core server. I want to run SMB shares on my new server. No Active Directory or LDAP to worry about on the network. Just bog-standard SMB shares that two people need to access using credentials defined in "Local Users".
So I have the shares working, but the Unix file permissions that Samba sets on new file creation are making me rip my hair out. For starters, the ownership defaults to user:user when I need it to be user:sharegroup. The ONLY way I've found to fix this is to set "group = sharegroup" on each share's "Auxillary Parameters" section, which already is unintuitive and seems wrong. But literally NOTHING else I've tried has worked. It's either ignored or causes Samba to crash on startup if I try to set it in the global Samba config instead. And the "Edit ACLs" functionality has me beyond-confused and seems to have no effect regardless of what I try.
The other problem I'm having is that any new file's permissions are set to 775. This is annoying at best (and a security risk at worst). I want 664 so files aren't getting their Unix execute bit set. Before you tell me about "create mask", I've already tried it. It always either gets ignored, or both gets ignored and simultaneously causes "group = sharegroup" from above to ALSO get ignored. I have been completely unable to fix this masking problem no matter what I try.
I mention TrueNAS Core above because I've successfully used it since the FreeNAS 11.2 days. I've never experienced any of these behaviors over there. So I'm desperately hoping to understand just what the heck it is I'm doing wrong here, as NEITHER of these seemingly-default TrueNAS Scale behaviors seems remotely desirable for anybody (especially the group issue, which locks out the user that didn't create the file).
I have a newly-built TrueNAS Scale server that is replacing an older TrueNAS Core server. I want to run SMB shares on my new server. No Active Directory or LDAP to worry about on the network. Just bog-standard SMB shares that two people need to access using credentials defined in "Local Users".
So I have the shares working, but the Unix file permissions that Samba sets on new file creation are making me rip my hair out. For starters, the ownership defaults to user:user when I need it to be user:sharegroup. The ONLY way I've found to fix this is to set "group = sharegroup" on each share's "Auxillary Parameters" section, which already is unintuitive and seems wrong. But literally NOTHING else I've tried has worked. It's either ignored or causes Samba to crash on startup if I try to set it in the global Samba config instead. And the "Edit ACLs" functionality has me beyond-confused and seems to have no effect regardless of what I try.
The other problem I'm having is that any new file's permissions are set to 775. This is annoying at best (and a security risk at worst). I want 664 so files aren't getting their Unix execute bit set. Before you tell me about "create mask", I've already tried it. It always either gets ignored, or both gets ignored and simultaneously causes "group = sharegroup" from above to ALSO get ignored. I have been completely unable to fix this masking problem no matter what I try.
I mention TrueNAS Core above because I've successfully used it since the FreeNAS 11.2 days. I've never experienced any of these behaviors over there. So I'm desperately hoping to understand just what the heck it is I'm doing wrong here, as NEITHER of these seemingly-default TrueNAS Scale behaviors seems remotely desirable for anybody (especially the group issue, which locks out the user that didn't create the file).