So I'm trying to set up a password protected samba share with permissions. And I believe I have set everything up decently correctly and the samba share works as intended.
But I'm having a slight problem regarding a local user accessing and using the same directory as the share. Anything the user creates will have it's primary group (another group than file-server-admin) as the owner of it and it'll be uneditable by any other users on the samba share even though force group is used. I understand that this is probably the intended way it's supposed to work but is there anyway to force group usage of a certain user inside a certain directory of a linux system or will I have to change the primary group of that user? Or is there any other solution?
I am using ubuntu server 20.04 if that will help
And this is the config for my samba share
[Aether]
comment = file-server-share
path = /mnt/omega
valid users = @file-server-admin
browsable = yes
writable = yes
read only = no
force group = file-server-admin
create mask = 0664
force create mode = 0664
directory mask = 0774
force directory mask = 0774