ubuntu1604 安装samba

sudo apt-get install samba

更改/etc/samba/smb.conf
添加
[share]
comment = share
path = /home/zm
writable = yes
valid users = zm

添加samba用户
sudo adduser zm

重启服务
sudo systemctl restart smbd

05-11 20:42