*New 12.1 series Release:
2020-04-17: XigmaNAS - released

*New 11.3 series Release:
2020-04-16: XigmaNAS - released!

We really need "Your" help on XigmaNAS https://translations.launchpad.net/xigmanas translations. Please help today!

Producing and hosting XigmaNAS costs money. Please consider donating for our project so that we can continue to offer you the best.
We need your support! eg: PAYPAL

forced file/directory modes get ignored

CIFS/SMB network sharing.
Forum rules
Set-Up GuideFAQsForum Rules
Post Reply
Posts: 19
Joined: 04 Oct 2018 19:04
Status: Offline

forced file/directory modes get ignored


Post by birnbacs »

In a mixed installation (Win, Win10, Mac; SMB and AFP) I want to make sure every file a user creates will be readable and writable by users of the same group. Directories shall additionally be executable.

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 group setting works, the mode settings do not.
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?

User avatar
Site Admin
Site Admin
Posts: 5075
Joined: 22 Jun 2012 22:13
Location: Madrid (ESPAÑA)
Status: Offline

Re: forced file/directory modes get ignored


Post by raulfg3 »

start test disabling ACL support on ZFS, then post result. (revision 6766)+OBI on SUPERMICRO X8SIL-F 8GB of ECC RAM, 12x3TB disk in 3 vdev in RaidZ1 = 32TB Raw size only 22TB usable

Last changes

HP T510

Posts: 6
Joined: 28 Dec 2018 22:16
Status: Offline

Re: forced file/directory modes get ignored


Post by admtech120 »

map network folder with full access,
check ntfs premissions of network directory, from windows.

default (only 3 premissions):
unix user
unix group

Post Reply

Return to “CIFS/SMB (Samba)”