To this end, I supplied parameters for smb4.conf in the web console, strictly following the file documentation.
I understand that 'create mode' for files and 'directory mode' for directories take away permissions (bitwise AND)
and 'force create mode' as well as 'force directory mode' add permissions (bitwise OR).
Skipping removal of permissions I tried this:
Code: Select all
force create mode = 0060 force directory mode = 0070 force group = +mygroup
The enclosing directory is in 0770 mode; disabling the inherit permissions mode does not change a thing.
Removing permissions as indicated does not work either.
Directories are invariably created in mode 0644, files mostly in 0744.
"Mostly" means that the majority of the files that my test user copies in are created in 0644, but some in 0664 (i.e. with write permission for the group). Funny as it may seem, I have observed a change of a 0664 file to a 0644 file, that is permissions were miraculously taken away, when the user copied in a different file. This behaviour seems reproducible.
What else can I do to force read/write permissions? Can the issue be related to ACLs, especially on ZFS? But then at least the bits should be set correctly, right?