centos 7 samba guest访问

一。修改配置文件
[global]
workgroup = SAMBA
security = user

    passdb backend = tdbsam

    printing = cups
    printcap name = cups
    load printers = yes
    cups options = raw
    map to guest = bad user

map to guest = bad user设置guest访问

[共享]
comment = It is used for everyone
path = /share/everyone
public = yes
writable = yes
guest ok = yes

guest ok = yes 匿名访问

    create mask = 0777
    directory mask = 0777

二。建立共享目录
三。改变共享目录的所有者
chown nobody:nobody /share/everyone
四。测试环境关闭防火墙及selinux

上一篇:树莓派4B踩坑指南 - (14)用cups建立家庭局域网共享中心


下一篇:python-lock