Ubuntu16.04 samba のインストール

・インストール

# apt install samba

・設定

# vi /etc/samba/smb.conf
        • -
[storage-1] comment = storage-1 browseable = yes writable = yes read only = no valid users = hiro create mask = 0755 path = /mnt/storage-1/ recycle:repository = recycle recycle:versions = yes recycle:touch = no recycle:maxsize = 0 recycle:exclude = *.tmp *.temp [storage-2] comment = storage-2 browseable = yes writable = yes read only = no valid users = hiro create mask = 0755 path = /mnt/storage-2/ recycle:repository = recycle recycle:versions = yes recycle:touch = yes recycle:maxsize = 0 recycle:exclude = *.tmp *.temp
        • -

・ユーザ追加

# pdbedit -a -u <ユーザ名>

・ユーザ参照

# pdbedit -L

自動起動

# systemctl enable samba.service

・再起動

# service smbd restart