+--------------------------------------------------------------------------------+
+                                  CIFS Status                                   +
+--------------------------------------------------------------------------------+
CIFS is ENABLED


+--------------------------------------------------------------------------------+
+                            /usr/local/etc/smb4.conf                            +
+--------------------------------------------------------------------------------+
[global]
    server min protocol = LANMAN2
    server max protocol = SMB3
    encrypt passwords = yes
    dns proxy = no
    strict locking = no
    oplocks = yes
    deadtime = 15
    max log size = 51200
    max open files = 466409
    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
    directory name cache size = 0
    kernel change notify = no
    dfree command = /usr/local/libexec/samba/dfree
    panic action = /usr/local/libexec/samba/samba-backtrace
    nsupdate command = /usr/local/bin/samba-nsupdate -g
    server string = FreeNAS Server
    ea support = yes
    store dos attributes = yes
    lm announce = yes
    time server = yes
    acl allow execute always = false
    acl check permissions = true
    dos filemode = yes
    multicast dns register = yes
    domain logons = no
    local master = yes
    idmap config *: backend = tdb
    idmap config *: range = 90000001-100000000
    server role = standalone
    netbios name = DAWNSTAR
    workgroup = WORKGROUP
    security = user
    pid directory = /var/run/samba
    smb passwd file = /var/etc/private/smbpasswd
    private dir = /var/etc/private
    create mask = 0666
    directory mask = 0777
    client ntlmv2 auth = yes
    dos charset = CP437
    unix charset = UTF-8
    log level = 1
    

[Guest]
    path = /mnt/Data/Guest
    printable = no
    veto files = /.snapshot/.windows/.mac/.zfs/
    writeable = yes
    browseable = yes
    recycle:repository = .recycle/%U
    recycle:keeptree = yes
    recycle:versions = yes
    recycle:touch = yes
    recycle:directory_mode = 0777
    recycle:subdir_mode = 0700
    vfs objects = zfsacl
    hide dot files = yes
    guest ok = yes
    nfs4:mode = special
    nfs4:acedup = merge
    nfs4:chown = true
    zfsacl:acesort = dontcare
    

[Media]
    path = /mnt/Data/Media
    printable = no
    veto files = /.snapshot/.windows/.mac/.zfs/
    writeable = yes
    browseable = yes
    recycle:repository = .recycle/%U
    recycle:keeptree = yes
    recycle:versions = yes
    recycle:touch = yes
    recycle:directory_mode = 0777
    recycle:subdir_mode = 0700
    shadow:snapdir = .zfs/snapshot
    shadow:sort = desc
    shadow:localtime = yes
    shadow:format = auto-%Y%m%d.%H%M-1w
    shadow:snapdirseverywhere = yes
    vfs objects = shadow_copy2 zfsacl
    hide dot files = yes
    guest ok = no
    nfs4:mode = special
    nfs4:acedup = merge
    nfs4:chown = true
    zfsacl:acesort = dontcare
    

[homes]
    valid users = %U
    path = /mnt/Data/home/%U
    comment = Home Directories
    printable = no
    veto files = /.snapshot/.windows/.mac/.zfs/
    writeable = yes
    browseable = yes
    recycle:repository = .recycle/%U
    recycle:keeptree = yes
    recycle:versions = yes
    recycle:touch = yes
    recycle:directory_mode = 0777
    recycle:subdir_mode = 0700
    shadow:snapdir = .zfs/snapshot
    shadow:sort = desc
    shadow:localtime = yes
    shadow:format = auto-%Y%m%d.%H%M-1w
    shadow:snapdirseverywhere = yes
    vfs objects = shadow_copy2 zfsacl
    hide dot files = yes
    guest ok = no
    nfs4:mode = special
    nfs4:acedup = merge
    nfs4:chown = true
    zfsacl:acesort = dontcare
    

[lion-windows]
    path = /mnt/Data/home/lion/Windows
    printable = no
    veto files = /.snapshot/.windows/.mac/.zfs/
    writeable = yes
    browseable = yes
    recycle:repository = .recycle/%U
    recycle:keeptree = yes
    recycle:versions = yes
    recycle:touch = yes
    recycle:directory_mode = 0777
    recycle:subdir_mode = 0700
    shadow:snapdir = .zfs/snapshot
    shadow:sort = desc
    shadow:localtime = yes
    shadow:format = auto-%Y%m%d.%H%M-1w
    shadow:snapdirseverywhere = yes
    vfs objects = shadow_copy2 zfsacl
    hide dot files = yes
    guest ok = no
    nfs4:mode = special
    nfs4:acedup = merge
    nfs4:chown = true
    zfsacl:acesort = dontcare


+--------------------------------------------------------------------------------+
+                           CIFS Shares & Permissions                            +
+--------------------------------------------------------------------------------+
+--------------------------------------------------------------------------------+
+                             Guest:/mnt/Data/Guest                              +
+--------------------------------------------------------------------------------+
drwxrwxr-x+ 7 nobody  Family  11 Aug  5 22:01 /mnt/Data/Guest

# file: /mnt/Data/Guest
# owner: nobody
# group: Family
            owner@:rwxpDdaARWcCos:fd----:allow
            group@:rwxpDdaARWcCos:fd----:allow
         everyone@:r-x---a-R-c---:fd----:allow

+--------------------------------------------------------------------------------+
+                    lion-windows:/mnt/Data/home/lion/Windows                    +
+--------------------------------------------------------------------------------+
drwxrwxr-x+ 3 lion  Family  4 Jan 21  2015 /mnt/Data/home/lion/Windows

# file: /mnt/Data/home/lion/Windows
# owner: lion
# group: Family
            owner@:rwxpDdaARWcCos:fd----:allow
            group@:rwxpDdaARWcCos:fd----:allow
         everyone@:r-x---a-R-c---:fd----:allow

+--------------------------------------------------------------------------------+
+                              home:/mnt/Data/home                               +
+--------------------------------------------------------------------------------+
drwxr-xr-x  5 root  wheel  5 Jul 25 15:56 /mnt/Data/home

# file: /mnt/Data/home
# owner: root
# group: wheel
            owner@:rwxp--aARWcCos:------:allow
            group@:r-x---a-R-c--s:------:allow
         everyone@:r-x---a-R-c--s:------:allow

+--------------------------------------------------------------------------------+
+                             Media:/mnt/Data/Media                              +
+--------------------------------------------------------------------------------+
drwxrwxr-x  7 family  Family  9 Aug  4 23:43 /mnt/Data/Media

# file: /mnt/Data/Media
# owner: family
# group: Family
            owner@:rwxp--aARWcCos:------:allow
            group@:rwxp--a-R-c--s:------:allow
         everyone@:r-x---a-R-c--s:------:allow



+--------------------------------------------------------------------------------+
+                                net getlocalsid                                 +
+--------------------------------------------------------------------------------+
Environment LOGNAME is not defined. Trying anonymous access.
SID for domain DAWNSTAR is: S-1-5-21-2357253286-255890847-874688181


+--------------------------------------------------------------------------------+
+                                net getdomainsid                                +
+--------------------------------------------------------------------------------+
Environment LOGNAME is not defined. Trying anonymous access.
Could not fetch domain SID
SID for local machine DAWNSTAR is: S-1-5-21-2357253286-255890847-874688181


+--------------------------------------------------------------------------------+
+                                net usersidlist                                 +
+--------------------------------------------------------------------------------+
Environment LOGNAME is not defined. Trying anonymous access.
DAWNSTAR\root
 S-1-5-21-2357253286-255890847-874688181-1000
 S-1-1-0
 S-1-5-2
 S-1-5-11
DAWNSTAR\lion
 S-1-5-21-2357253286-255890847-874688181-3002
 S-1-1-0
 S-1-5-2
 S-1-5-11
DAWNSTAR\aoki
 S-1-5-21-2357253286-255890847-874688181-3004
 S-1-1-0
 S-1-5-2
 S-1-5-11


+--------------------------------------------------------------------------------+
+                              net status sessions                               +
+--------------------------------------------------------------------------------+
Environment LOGNAME is not defined. Trying anonymous access.
PID     Username      Group         Machine                        
-------------------------------------------------------------------
  12723   lion          lion          10.0.1.22    (ipv4:10.0.1.22:50400)


+--------------------------------------------------------------------------------+
+                               net status shares                                +
+--------------------------------------------------------------------------------+
Environment LOGNAME is not defined. Trying anonymous access.

Service      pid     machine       Connected at
-------------------------------------------------------
lion         12723   10.0.1.22     Thu Aug  6 15:52:12 2015
lion-windo   12723   10.0.1.22     Thu Aug  6 14:55:07 2015
Media        12723   10.0.1.22     Thu Aug  6 15:52:12 2015


+--------------------------------------------------------------------------------+
+                                Users and Groups                                +
+--------------------------------------------------------------------------------+
+--------------------------------------------------------------------------------+
+                                     Users                                      +
+--------------------------------------------------------------------------------+
DAWNSTAR\root
DAWNSTAR\lion
DAWNSTAR\aoki
+--------------------------------------------------------------------------------+
+                                     Groups                                     +
+--------------------------------------------------------------------------------+


