- 安装samba
apt install samba - 修改配置文件
/etc/samba/smb.conf
[share]
comment = share
#共享文件目录
path = /mnt/share/share
#是否允许guest访问
public = yes
#是否可写权限
writable = yes
#是否浏览权限
browseable = yes
#是否只读
read only = no
- 重启服务
service smb restart - 测试
linux: smb://ip/share
win: \ip/share - 启动samba服务
service smb start