1
2

Delete article

Deleted articles cannot be recovered.

Draft of this article would be also deleted.

Are you sure you want to delete this article?

More than 5 years have passed since last update.

RasPi4によるホームサーバー構築 その6 SAMBAのセットアップ

1
Posted at

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
1
2
0

Register as a new user and use Qiita more conveniently

  1. You get articles that match your needs
  2. You can efficiently read back useful information
  3. You can use dark theme
What you can do with signing up
1
2

Delete article

Deleted articles cannot be recovered.

Draft of this article would be also deleted.

Are you sure you want to delete this article?