pkg search samba
pkg install samba410
apt search samba
apt install samba
セキュリティ的なことはいったん置いておいて、まずはsambaを動かす簡単な設定。
[global]
workgroup=WORKGROUP
security=user
guest ok=yes
guest account=nobody
local master=no
os level=0
dns proxy=no
wins support=no
min protocol=SMB2
max protocol=SMB3
browseable=yes
hosts allow=all
server string=%h server
dns proxy=no
wins support=no
[homes]
path=/home/%U
browseable=no
writable=yes
read only=no
interfaces を使っていると発生する場合がある。原因はおそらく名前を引いたときにIPv6のアドレスが返っているの、interfacesがIPv4のものしか指定していないのではないかと。interfacesを削除するかinterfacesにIPv6の設定を追加する。