2019年4月20日土曜日

samba server の 設定

・ubuntu 18.04 server の場合

1.samba にユーザを追加する
$sudo pdbedit -a xxxxx

2.samba の設定ファイルに ユーザの home directory を追加する

$sudo vi /etc/samba/smb.conf

[homes]
browseable = no
writable = yes
path = /home/%u/share
create mask = 0700
directory mask = 0700
guest ok = no

* home の share デイレクトリーを共有する場合

3.samba の再起動
$ sudo systemctl restart smbd
$ sudo systemctl restart nmbd