- fstab entry for your samba share on the Client
//freenas.local/FILES /mnt/freenas cifs username=username,password=password,domain=WORKGROUP,iocharset=utf8,sec=ntlm 0 0
- contents of /usr/local/etc/smb4.conf on the FreeNAS server
[root@freenas] ~# testparm /usr/local/etc/smb4.conf
Load smb config files from /usr/local/etc/smb4.conf
Processing section "[FILES]"
Loaded services file OK.
Server role: ROLE_STANDALONE
Press enter to see a dump of your service definitions
# Global parameters
[global]
dos charset = CP437
multicast dns register = No
netbios aliases = FREENAS
server string = FreeNAS Server
lm announce = Yes
nsupdate command = /usr/local/bin/samba-nsupdate -g
logging = file
max log size = 51200
domain logons = Yes
kernel change notify = No
panic action = /usr/local/libexec/samba/samba-backtrace
pid directory = /var/run/samba
disable spoolss = Yes
load printers = No
printcap name = /dev/null
server max protocol = SMB2
time server = Yes
map to guest = Bad User
obey pam restrictions = Yes
security = USER
server role = standalone server
username map = /usr/local/etc/smbusers
deadtime = 15
hostname lookups = Yes
max open files = 470207
dns proxy = No
idmap config *: range = 90000001-100000000
idmap config * : backend = tdb
store dos attributes = Yes
strict locking = No
directory name cache size = 0
dos filemode = Yes
acl allow execute always = Yes
ea support = Yes
create mask = 0666
directory mask = 0777
[FILES]
path = /mnt/FREENASPOOL/FILES
veto files = /.snapshot/.windows/.mac/.zfs/
read only = No
vfs objects = zfs_space zfsacl streams_xattr aio_pthread
zfsacl:acesort = dontcare
nfs4:chown = true
nfs4:acedup = merge
nfs4:mode = special
[root@freenas] ~#
- output of net groupmap list on the FreeNAS server
freenas (S-1-5-21-598215223-1679715684-3756814963-1001) -> freenas
ftpuser (S-1-5-21-598215223-1679715684-3756814963-1005) -> 1002
- output of net getlocalsid on the FreeNAS server
SID for domain FREENAS is: S-1-5-21-598215223-1679715684-3756814963
- output of getfacl /path/to/share on the FreeNAS server
[root@freenas] ~# getfacl /mnt/FREENASPOOL/FILES
# file: /mnt/FREENASPOOL/FILES
# owner: root
# group: wheel
owner@:rwxpDdaARWcCos:fd-----:allow
group@:rwxpDdaARWcCos:fd-----:allow
everyone@:r-x---a-R-c---:fd-----:allow
[root@freenas] ~#