1.ubuntu里面安装samba
sudo apt install samba
2.修改 sudo vi /etc/samba/smb.conf
加上以下,目录自定义
security = user
[public]
path = /home/user/workspace
public = yes
writeable = yes
browseable = yes
guest ok = yes
如果之后访问的时候没有写权限,将该目录改为 777
3.重启samba服务
sudo /etc/init.d/samba restart
4.windows 文件夹路径为
\\ 192.168.0.xxx 访问