ubuntu18.04 版本验证可行
一:安装samba
$ sudo apt-get install samba
二:修改配置文件
$ sudo gedit /etc/samba/smb.conf
文件修改如
注意 是在 smb.conf 文件末尾添加如下:
#【此处 vmshare 是共享的名称,可任意取】
[vmshare]
path = /home/bright/vmshare
writable = yes
create mask = 0777
directory mask = 0777
public = yes
**重启Samba服务**: 为了使更改生效,你需要重启Samba服务 :
sudo systemctl restart smbd nmbd
三:在上面path路径创建文件夹 vmshare
四:在window 下 【映射网络驱动器】输入 \\192.168.xxx.xxx\vmshare 即可实现共享