I've been searching for while to try to understand the following mask/mode fields for creating files/folders in Samba shares:
create mask
force create mode
directory mask
force directory mode
But I've failed... I'm looking into changing the files/folders to specific permissions (when files/folders are created on the Samba shares) but the combination of the mask and mode is complicating things.
Here's what I'm after for file and directory creation permissions:
File: -rw-rw-r--
(664)
Directory: drwxrwxr-x
(775)
What do I have to set on the above 4 Samba configuration fields to achieve this?