On our Centos 7 server, I added create mask = 770
to my smb.conf
in order to force permissions on the files our Windows users store in a directory. Then from the command line, I entered the following:
# systemctl restart smb.service
# systemctl restart nmb.service
...but the files were not saved with the right permissions. They were saved correctly after a reboot. So what happened in the reboot that (maybe) I could have done from the command line?
Here's the section of the smb.conf:
[image-storage]
comment = archived image location
path = /our/samba/path/to/image_storage
valid users = @NameOfOurGroup
create mask = 770
browsable = yes
writable = yes
guest ok = no
force user = imagestore