Include "sharesec --view-all" output in debug output for Samba shares
Windows shares have filesystem (NTFS) ACLs and share (NT) ACLs. The former are handled through ZFS acls in FreeNAS. The latter are stored in share_info.tdb. At present, FreeNAS debug output does not include the latter (at least in the CIFS dump).
The syntax for dumping share ACLs is fairly simple: "sharesec --view-all"