I tried changing an SMB Share ACL from “Everyone” to a single user but wasn’t sure what to enter in the SID or domain field.
The help text said:
Local users have the SMB server NetBIOS name:
And the documentation said it was
But neither worked an caused the following error:
CallError [EFAULT] SID lookup for
freenas\\smbusers\userfailed: failed to call wbcLookupName: WBC_ERR_DOMAIN_NOT_FOUND Could not lookup name
To lookup the local domain I ran
net getlocalsid as root and got:
SID for domain TRUENAS is: […]
So this means I need to enter
TRUENAS as the domain.
When also setting the username and saving it automatically fills out the SID.
Additionally the user SIDs can be listed with: