Actually I think it is because FreeNAS won't let me have a blank netbios field.
Samba doesn't either. It defaults to making your server's netbios name the same as the first component of its DNS name, which is broadly-speaking, the correct thing to do. If you want an additional netbios name for the server, you should add a netbios alias.
Tried that. The problem is that unless I know what to search for, I am not going to be able to find what I am looking for. All I really want is for this server to be available to Windows as one single network drive.
I typically won't share out the main dataset of my zpool. In your case "/mnt/music". I'd create a dataset "/mnt/music/smb" (for example), and then share that via SMB.
- /mnt/music = Unix permissions
- /mnt/music/smb = Windows permissions
Then set the dataset /mnt/music/smb so that it's owned by an appropriate user / group.
Since you've already been mucking around with permissions on /mnt/music, after changing its permissions type, I'd do the following:
- Nuke any existing ACL via the command
setfacl -b /mnt/music
.
- Make sure that "other" has the "x" permission bit on /mnt/music
chmod o+x /mnt/Music
(this is required for users to be able to access the share).
- Use the FreeNAS UI to change the owner of /mnt/music/smb to something appropriate.
- Then apply default permissions on your share
winacl -a reset -r -p /mnt/music/smb
Now the permissions on your FreeNAS shares are in a default state. Owner has full control. Owner-Group has full control. Everyone else has read only access.
Unfortunately, windows caches credentials for mapped network drives. Unmap ALL network drives from the Windows client. If you're feeling particularly lazy, you can open powershell on the windows computer and type
net use * /DELETE
. Perhaps give the Window client a kick to be on the safe side (reboot it).
Now windows should have mostly cleared its cache. You can now access your server and fine-tune permissions.
Navigate to
\\<server-name>\
and authenticate using appropriate credentials. Once you're there, right-click on the share, click properties, open the security tab, and fine-tune those permissions as needed.
Then open the share and create necessary subdirectories.