I’m running a Samba4 on the FreeBSD 14 system. I couldn’t write content to that share filesystem after a system rebooting.

After running the below command, the write permission is back:

service samba_server stop
net cache flush
# -> tdb(/var/db/samba4/gencache.tdb): tdb_rec_read bad magic 0x10878 at offset=67584
service samba_server start