系统相关
首页 > 系统相关> > centos 7 samba guest访问

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

标签:samba,guest,centos,share,user,yes,cups,共享
来源: https://blog.51cto.com/1580598/2472430