LinuxSir.cn,穿越时空的Linuxsir!

 找回密码
 注册
搜索
热搜: shell linux mysql
查看: 662|回复: 0

为什么不能设置 security=share?附smb.conf文件内容

[复制链接]
发表于 2005-11-1 21:14:24 | 显示全部楼层 |阅读模式
smb.conf
[global]
        add machine script = /usr/sbin/useradd  -c Machine -d /var/lib/nobody -s /bin/false %m$
        domain logons = No
        domain master = No
        security = user
        workgroup = workgroup
#       idmap gid = 10000-20000
#       idmap uid = 10000-20000

        printcap name = /etc/printcap
        load printers = yes
        printing = cups
        cups options = raw

[printers]
        comment = All Printers
        path = /var/spool/samba
#       browseable = yes
#       public = yes
        writable = no
        printable = yes
        read only = No

[zjtest]
        inherit acls = Yes
        path = /home/zjtest
        read only = No

## Share disabled by YaST
# [netlogon]

想把一个文件夹完全共享,修改security =share,注释[global]前三条设置.但启动samba后,smb.conf恢复原样。删掉那三条设置,从win共享仍然需要密码。
您需要登录后才可以回帖 登录 | 注册

本版积分规则

快速回复 返回顶部 返回列表