CIFS permissions question

Status
Not open for further replies.

wmbelle

Cadet
Joined
Oct 31, 2015
Messages
2
Hi guys

Apologies if this is a simple question...

I'm currently running 9.2.1.4, and have been since its release due to the fact that the following 'Inherit Permissions' checkbox on the Add Windows (CIFS) shares dialogue box was removed from later versions (which I still require):

CIFS shares 9214.png


If I do the following, for example in 9.10, will this achieve the same results...?

CIFS shares workaround.png


Thanks in advance...
 
Last edited:

wmbelle

Cadet
Joined
Oct 31, 2015
Messages
2
Thanks anodos.
One last question; if I were to add it to the Global section of smb.conf, would this also have the desired effect i.e. apply it to all CIFS shares created?
 

anodos

Sambassador
iXsystems
Joined
Mar 6, 2014
Messages
9,553
Thanks anodos.
One last question; if I were to add it to the Global section of smb.conf, would this also have the desired effect i.e. apply it to all CIFS shares created?
In samba, all share-level parameters can be specified as global parameters and will then define the default behavior for all shares. https://www.samba.org/samba/docs/man/manpages/smb.conf.5.html

Please note that the "inherit permissions" parameter was removed from the FreeNAS config because it is no longer needed due to the presence of nfsv4 acls. Inheritance information is stored on each access control entry (ACE) of an acl. See "ACL Inheritance Flags" section of the setfacl manpage https://www.freebsd.org/cgi/man.cgi?query=setfacl&sektion=1 . This means that you should define permissions inheritance at the root of your share via Windows Explorer or the command-line program "smbcacls" (the latter is assuming that you haven't added any data to the share yet).
 
Status
Not open for further replies.
Top