Hello. I've set up a new NAS and a Windows share on it and joined it to an existing domain. Most things are working correctly, however, when a new file or directory is created on the share (and not on other shares off the FreeNAS system) it's given three extraneous explicit permissions in addition to the expected inherited permissions for the following three users/groups: EVERYONE, DOMAIN\Domain Admins, DOMAIN\AdminName. Obviously the first one is the primary concern, although none of them should be created. I'd greatly appreciate help in diagnosing this. I've changed some names (DOMAIN, AdminName, etc.) for privacy, I hope that's okay.
This seems similar to https://forums.freenas.org/index.php?threads/cifs-permission-woes-on-new-files-and-folders.39605/ but as that is a couple years old and I didn't really understand if the user was able to resolve it using the suggestions provided, I decided it best to create a new thread.
I've configured as much as I can Windows-side using Computer Management->Connect to Computer to manipulate the share's permissions and Windows Explorer to manipulate the NTFS permissions.
Below I've included what information I thought relevant. Please let me know if there is anything else you need.
Volume/dataset/share (ignore the extra VM zvol, it shouldn't be there and I need to move that to another pool):
Dataset permissions:
Share permissions:
/etc/local/smb4.conf:Thank you for any assistance you can provide.
This seems similar to https://forums.freenas.org/index.php?threads/cifs-permission-woes-on-new-files-and-folders.39605/ but as that is a couple years old and I didn't really understand if the user was able to resolve it using the suggestions provided, I decided it best to create a new thread.
I've configured as much as I can Windows-side using Computer Management->Connect to Computer to manipulate the share's permissions and Windows Explorer to manipulate the NTFS permissions.
Below I've included what information I thought relevant. Please let me know if there is anything else you need.
Code:
FreeNAS-11.0-U2 (e417d8aa5) freenas# uname -a FreeBSD freenas.domain.local 11.0-STABLE FreeBSD 11.0-STABLE #0 r313908+d7d07647f69(freenas/11.0-stable): Thu Jul 20 19:01:05 UTC 2017 root@gauntlet:/freenas-11-releng/freenas/_BE/objs/freenas-11-releng/freenas/_BE/os/sys/FreeNAS.amd64 amd64 Intel Xeon E3-1240v6 Supermicro X11SSM-F-O 64GB Kingston ValueRAM 16GB 2133MHz DDR4 ECC CL15 DIMM 2Rx8 Perc H200 flashed to 9211-8i IT Mode 20.00.07
Volume/dataset/share (ignore the extra VM zvol, it shouldn't be there and I need to move that to another pool):

Dataset permissions:

Share permissions:

Code:
freenas# zfs get aclmode v01_hdd-raidz2 NAME PROPERTY VALUE SOURCE v01_hdd-raidz2 aclmode restricted local freenas# zfs get aclmode v01_hdd-raidz2/nas_00 NAME PROPERTY VALUE SOURCE v01_hdd-raidz2/nas_00 aclmode restricted local freenas# getfacl /mnt/v01_hdd-raidz2/ # file: /mnt/v01_hdd-raidz2/ # owner: DOMAIN\administrator # group: DOMAIN\domain admins owner@:rwxpDdaARWcCos:fd-----:allow group@:rwxpDdaARWcCos:fd-----:allow everyone@:r-x---a-R-c---:fd-----:allow freenas# getfacl /mnt/v01_hdd-raidz2/nas_00 # file: /mnt/v01_hdd-raidz2/nas_00 # owner: DOMAIN\adminname # group: DOMAIN\domain admins group:DOMAIN\nas_00-writers:rwxpDdaARWc---:fd-----:allow group:DOMAIN\nas_00-full:rwxpDdaARWcCo-:fd-----:allow group:DOMAIN\administrator:rwxpDdaARWcCo-:fd-----:allow group:DOMAIN\domain users:--x---a-------:-d-----:allow group:BUILTIN\administrators:rwxpDdaARWcCo-:fd-----:allow freenas# testparm Load smb config files from /usr/local/etc/smb4.conf Processing section "[nas_00]" Loaded services file OK. Server role: ROLE_DOMAIN_MEMBER
/etc/local/smb4.conf:
Code:
[global] server max protocol = SMB3 interfaces = 127.0.0.1 10.1.1.208 10.2.1.208 bind interfaces only = yes encrypt passwords = yes dns proxy = no strict locking = no oplocks = yes deadtime = 15 max log size = 51200 max open files = 1884863 logging = file load printers = no printing = bsd printcap name = /dev/null disable spoolss = yes getwd cache = yes guest account = nobody map to guest = Bad User obey pam restrictions = yes ntlm auth = no directory name cache size = 0 kernel change notify = no panic action = /usr/local/libexec/samba/samba-backtrace nsupdate command = /usr/local/bin/samba-nsupdate -g server string = freenas ea support = yes store dos attributes = yes lm announce = yes acl allow execute always = true dos filemode = yes multicast dns register = yes domain logons = no idmap config *: backend = tdb idmap config *: range = 90000001-100000000 server role = member server workgroup = DOMAIN realm = DOMAIN.LOCAL security = ADS client use spnego = yes local master = no domain master = no preferred master = no ads dns update = yes winbind cache time = 7200 winbind offline logon = yes winbind enum users = yes winbind enum groups = yes winbind nested groups = yes winbind use default domain = no winbind refresh tickets = yes idmap config DOMAIN: backend = rid idmap config DOMAIN: range = 20000-90000000 allow trusted domains = no client ldap sasl wrapping = plain template shell = /bin/sh template homedir = /home/%D/%U netbios name = FREENAS pid directory = /var/run/samba create mask = 0666 directory mask = 0777 client ntlmv2 auth = yes dos charset = CP437 unix charset = UTF-8 log level = 1 [nas_00] path = "/mnt/v01_hdd-raidz2/nas_00" printable = no veto files = /.snapshot/.windows/.mac/.zfs/ writeable = yes browseable = yes shadow:snapdir = .zfs/snapshot shadow:sort = desc shadow:localtime = yes shadow:format = auto-%Y%m%d.%H%M-2w shadow:snapdirseverywhere = yes vfs objects = shadow_copy2 zfs_space zfsacl streams_xattr aio_pthread hide dot files = yes guest ok = no nfs4:mode = special nfs4:acedup = merge nfs4:chown = true zfsacl:acesort = dontcare access based share enum=yes
Last edited: