功能:让局域网内其他设备来访问本机,将本机设备共享出去
使用的samba软件包版本是基于4.5.1
smb.conf简单配置:
1.匿名访问
[global]
workgroup = WORKGROUP //如果需要跟windows交互,工作组建议设置为WORKGROUP
public = yes
security = user //定义安全级别为user
map to guest = bad user //如使用不存在的用户登录,映射为guest用户;如使用正确的用户而密码错误,则禁止连接
server string = Samba Server //对Samba Server的描述
server role = standalone server //独立服务器
[share] //自定义共享名
comment = share //描述
path = /storage/emulated/legacy/Pictures/wallpaper //共享目录路径
public = yes //是否公开,也就是通过网上邻居客户端能看到该共享
writable = yes //是否可写
browseable = yes //是否可以浏览
guest ok = yes //是否允许来宾用户访问
2.用户密码访问
[global]
workgroup = WORKGROUP
public = yes
server string = Samba Server
server role = standalone server
[share]
comment = share
p