*New 11.3 series Release:
2019-10-19: XigmaNAS 11.3.0.4.7014 - released

*New 12.0 series Release:
2019-10-05: XigmaNAS 12.0.0.4.6928 - released!

*New 11.2 series Release:
2019-09-23: XigmaNAS 11.2.0.4.6881 - 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
birnbacs
Starter
Starter
Posts: 22
Joined: 04 Oct 2018 19:04
Status: Offline

forced file/directory modes get ignored

#1

Post by birnbacs » 25 Jan 2019 10:54

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
raulfg3
Site Admin
Site Admin
Posts: 4921
Joined: 22 Jun 2012 22:13
Location: Madrid (ESPAÑA)
Contact:
Status: Offline

Re: forced file/directory modes get ignored

#2

Post by raulfg3 » 25 Jan 2019 11:20

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

Wiki
Last changes

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

Re: forced file/directory modes get ignored

#3

Post by admtech120 » 26 Jan 2019 12:18

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

default (only 3 premissions):
unix user
unix group
guest

Post Reply

Return to “CIFS/SMB (Samba)”