💡

Ubuntu Server 22.04.1 LTS で Samba設定

2022/10/09に公開

sambaインストール

sudo apt install samba

共有フォルダ作成

sudo mkdir -p /home/ohnishi/data
sudo chmod 777 /home/ohnishi/data

/etc/samba/smb.conf の末尾に追加

[share]
  path = /home/ohnishi/data
  browsable = yes
  writable = yes
  guest ok = yes
  read only = no

sambaにユーザーを追加

sudo pdbedit -a ohnishi

samba再起動

sudo systemctl restart smbd.service

Discussion