ubuntu 18.04 配置共享文件夹
sudo vi /etc/samba/smb.conf 写配置文件
# Please note that you also need to set appropriate Unix permissions
# to the drivers directory for these users to have write rights in it
; write list = root, @lpadmin
[share]
comment = share folder
browseable = yes
writable = yes
guest ok = yes
path = /home/SENSETIME/chenhao3.vendor/share
create mask = 0777
directory mask = 0777
[data]
comment = share folder
browseable = yes
writable = yes
guest ok = yes
path = /mnt/data
create mask = 0777
directory mask = 0777
[data1]
comment = share folder
browseable = yes
writable = yes
guest ok = yes
path = /mnt/data1
create mask = 0777
directory mask = 0777
sudo /etc/init.d/smbd restart 重启smb服务
另外一台主机连接,前提是要保证这两台主机网络要互通哦。