Right, that has helped
anodos, thank you very much. So the "
testparm -s" without any args, worked as expected and it is showing the info I was looking for, in my case it is "
[jobs]" and "
[PermTest]" share blocks. Attaching
testparm_s_output_20210528__1241.txt for reference.
Also, the "
testparm -s" outputs the info, that reads, it is from
/usr/local/etc/smb4.conf (smb4.conf_20210528__1242.txt) - However, while opening that config file the "
[jobs]" and "
[PermTest]" share blocks and params are missing. Had those blocks been available in the
smb4.conf I was hoping to hand-edit the config file and add some directives, such as the below for
[jobs] share and see if that's working as expected for both Windows (
SMB/CIFS) and Linux (
NFS) clients.
force directory mode = 2770
force create mode = 0770
directory mode = 770
create mode = 770
And wanted to test if what I am trying to achieve per
this post works for
[jobs] Multi-protocol (NFSv3/SMB) share.
Any thoughts/inputs on this and
the other related topic will be very helpful.
NOTE:
- /mnt/Pool1/jobs - this is a direct folder shared with the purpose "Multi-protocol (NFSv3/SMB) shares" and this is accessible over NFS & SMB but the NFS permissions for newly created files and folders are being set to 755 instead of 770 - which is our goal to have it set/inherit from the permissions from the parent folder
- /mnt/Pool1/PermTest - this is a dataset created with "Share Type -> Generic" and subsequently, exported as both SMB (Purpose -> Default share parameters) and NFS shares individually.
- The PermTest SMB share seems to be working as expected and for newly created files/folders it seems to inherit 770 permissions. I believe this is due to the ACLs enabled.
- As for the PermTest NFS share it is failing to mount on the client Linux machine with the error, per this post.
Also, we have checked if the PermTest NFS export is of version 3 or 4, and it seems it is v3, despite that it is resulting in the mounting error at the (
Linux) client end.
fpfs001 server NFS Export version info:
Code:
rpcinfo -p fpfs001 | grep nfs
100003 2 tcp 2049 nfs
100003 3 tcp 2049 nfs
So the expected resolution would be either of these options, per our understanding,
- Either we get the [jobs] multi-protocol NFS & SMB share working with required permissions inheritance
- Or, we get the [PermTest] NFS share mounting issue resolved, where we are seeing the permissions seem to be holding up when testing from Windows/SMB access.
Any thoughts / suggestions on this will be greatly appreciated.
Thanks,