Sambaの設定
1. インストール
sudo apt-get install -y samba
2. samba設定
sudo mv /etc/samba/smb.conf /etc/samba/smb.~conf
sudo vim /etc/samba/smb.conf
[global] に以下を追記
server min protocol = SMB2
server max protocol = SMB2
server multi channel support = yes
socket options = IPTOS_THROUGHPUT SO_KEEPALIVE
deadtime = 30
use sendfile = Yes
load printers = no
interfaces 192.168.251. 127.0.0.1/8 eth0(IPアドレスは自分の環境に応じて変更のこと)
bind interfaces only = yes
hosts allow = 192.168.251. fe80::/10(IPアドレスは自分の環境に応じて変更のこと)
security = user
最後に以下を追記
[data]
comment = data
path = /mnt/hdd/DATA(共有するパスを指定)
public = yes
read only = no
writable = yes
browsable = yes
create mask = 0777
directory mask = 0777
force user = ユーザー名
3. samba起動
sudo systemctl restart smbd
sudo systemctl restart nmbd