I'm trying to use Samba on vanilla FreeBSD based on the configuration I had under TrueNAS Scale. Trying to copy files with the Finder on a Tahoe client results in:
I can use setextattr &c. to read and write user-space extended attributes manually locally on the file system. Attempting to set system attributes would produce an error but smbd shouldn't be trying to do that. Windows clients work fine (as expected).
What else should I be looking at to fix this problem?
The global and share from smb4.conf:
The operation can’t be completed because an unexpected error occurred (error code 100093).
with an error message:[2025/09/25 00:48:51.333658, 1] ../../source3/smbd/smb2_setinfo.c:430(smbd_smb2_setinfo_send)
smbd_smb2_setinfo_send: vfs_stat() of software/CitrixWorkspaceApp.dmg:AFP_AfpInfo failed (No such file or directory)
Unsetting freebsd:extattr mode = secure changes the error to -36 and produces nothing in the error log.I can use setextattr &c. to read and write user-space extended attributes manually locally on the file system. Attempting to set system attributes would produce an error but smbd shouldn't be trying to do that. Windows clients work fine (as expected).
What else should I be looking at to fix this problem?
The global and share from smb4.conf:
INI:
[global]
disable spoolss = True
dns proxy = False
load printers = False
max log size = 5120
printcap = /dev/null
bind interfaces only = True
fruit:nfs_aces = False
# fruit:zero_file_id = False
rpc_daemon:mdssd = disabled
rpc_server:mdssvc = disabled
restrict anonymous = 2
winbind request timeout = 2
workgroup = WORKGROUP
netbios name = lspace
netbios aliases =
guest account = nobody
obey pam restrictions = False
create mask = 0664
directory mask = 0775
ntlm auth = False
server multichannel support = False
unix charset = UTF-8
local master = True
server string = Dell T410
log level = 1
logging = file
server smb encrypt = required
interfaces = 172.21.1.42 127.0.0.1
idmap config * : backend = tdb
idmap config * : range = 90000001 - 100000000
zfs_core:zfs_integrity_streams = False
zfs_core:zfs_block_cloning = False
registry shares = True
include = registry
security = user
freebsd:extattr mode = secure
passdb backend = tdbsam:/var/db/samba4/private/passdb.tdb
nfs4:acedup = merge
nfs4:chown = no
store dos attributes = yes
map hidden = no
map system = no
map archive = no
map readonly = no
# https://www.dokispace.com/posts/freebsd-file-server/
use sendfile = yes
fstype = ZFS
fruit:aapl = yes
fruit:copyfile = yes
[share]
hosts allow =
hosts deny =
access based share enum = False
readonly = False
available = True
guest ok = False
nt acl support = True
smbd max xattr size = 2097152
fruit:metadata = stream
fruit:resource = xattr
comment = Share system thingy
browseable = True
ea support = True
path = /zedpm/share
posix locking = False
vfs objects = freebsd fruit streams_xattr shadow_copy2 zfsacl