Lot's of good questions and unfortunately answers to them too often depend on actual circumstances, so they are not exhaustively covered in any documentation...
Currently, I do not have access to my FreeNAS. And that may last for a couple of days, so I will just go through my theoretical ideas. I think my answers fall into three groups: what to do to have your FreeNAS working, what is happening that things are not working, why...
I am afraid that my answers from the third group would be very basic, as my knowledge of FreeNAS and CIFS is rather superficial.
==========================================
You have a dataset or directory
.system on your Volume, that has to be removed and recreated anew, since somehow it does interfere with proper CIFS operations.
You had hit a bug (listed resolved in the next release of FreeNAS) about
.system dataset missing or being moved.
You had hit a bug related to the way FreeNAS treats ZFS on USB.
I have modified my steps to be all inclusive and I am posting them here right away. I will add explanations in my subsequent posts, but I cannot promise when.
==========================================
Start your FreeNAS with a newly imaged USB with 9.2.1.5, your disks and that extra USB memory device.
root password
login as root
Services → SSH →
* Login as Root with password: YES
Services →
* SSH → ON
System → Settings → Advanced →
* Show advanced fields by default: YES
Storage → Volumes → ZFS Volume Manager →
* create a pool on USB memory, Volume Name = Temporary, using system defaults
(.system gets placed on it immediately)
Storage → Volumes → View Volumes →
Auto Import Volume → Encrypted ZFS volume? No: Skip to import → Volume → YOUR_POOL_NAME
Login to your system using SSH. In that SSH session
* zfs list | grep YOUR_POOL_NAME/.system
* zfs destroy YOUR_POOL_NAME/.system/syslog
* zfs destroy YOUR_POOL_NAME/.system/samba4
* zfs destroy YOUR_POOL_NAME/.system/cores
* zfs destroy YOUR_POOL_NAME/.system
* zfs list | grep YOUR_POOL_NAME
* make sure that there is no directory /mnt/YOUR_POOL_NAME/.system
System → Settings → Advanced →
System dataset pool → YOUR_POOL_NAME
Storage → Volumes → View Volumes →
Temporary → Detach Volume → Mark the disks as new (destroy data): YES
( only after that reboot .system will be working properly from YOUR_POOL_NAME )
* shutdown the system
* re
move temporary USB
* restart your system
Storage → Volumes → /mnt/YOUR_POOL_NAME → Change Permissions →
allow read, write, execute access to owner, group, other (leave owner and group as root and wheel)
On 9.2.1.5 only, in an SSH session, and not in a shell from GUI (because of the patch stopping GUI)
* patch the system →
https://bugs.freenas.org/issues/4874
Sharing → Windows (CIFS) → Add Windows (CIFS) Share →
Name: YOUR_POOL_NAME
Path: /mnt/YOUR_POOL_NAME
Browsable to Network Clients: YES (default)
Inherit ACL's: YES (default)
Show Hidden Files: YES
Allow Guest Access: YES
Only Allow Guest Access: NO (default)
Hosts Allow: EMPTY (default)
Hosts Deny: EMPTY (default)
Auxiliary Parameters: EMPTY (default)
Would you like to enable this service? YES
Services → CIFS →
DOS charset: CP437 (default)
UNIX charset: UTF-8 (default)
Log level: Minimum (default)
Local Master: YES (default)
Time Server for Domain: YES (default)
Support DOS File Attributes: YES (default)
Unix Extensions: YES (default)
Zeroconf share discovery: YES (default)
Hostname lookups: NO
Allow execute always: YES (default)
==================================
There could be (I am certain that there would be ;) ) a problem with the data already in place. That can be dealt with.