Samba "force create mode"/"force directory mode" not working, how to solve?
I have created a Share on a Samba server, to be used commonly by several users, with the goal, that all users belonging to a Unix group (in this case "users") can read and write these files, but nobody else should have access to these files. Speaking in unix permissions I wanted to add the 0770 mask to these files. After reading the Samba documentation I concluded that I need to set the "force create mode"/"force directory mode" parameters for this share and this should do the trick. After setting it up it was working well for my account (the first, account created during installation), but it was not working for a second account, which I have created manually, and where I have added it manually to the users group as its primary group. For this account it always omitted the group write attribute for the directories, where the resulting permission was always 0750. After some investigation it turned out that Samba was honoring the "umask" re...