centos 7 samba guest访问

狂风中的少年 提交于 2020-02-26 01:08:26

一。修改配置文件
[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

标签
易学教程内所有资源均来自网络或用户发布的内容,如有违反法律规定的内容欢迎反馈
该文章没有解决你所遇到的问题?点击提问,说说你的问题,让更多的人一起探讨吧!