连接到没有用户名/密码的Samba共享

我刚刚在CentOS 5机器上设置了Samba。 它工作正常,但我想configuration它,使用户可以连接到Samba共享,而无需提供用户名和密码。 我已经search了一个smb.conf参考,但文档似乎是相当分散,不全面。 有人可以解释如何做到这一点? 非常感谢。

我在用着

[global] security = share 

在smb.conf中。

这似乎足以进行无密码访问。 计算机属于同一个工作组,但我不知道这是否是强制要求。

用于匿名访问的smb.conf示例:

 #======================= Global Settings [global] workgroup = WORKGROUP netbios name = Encre security = user hosts allow = 192.168.0.0/24 127.0.0.1 hosts deny = 0.0.0.0/0 log file = /var/log/samba/%m max log size = 50 socket options = TCP_NODELAY #============================ Share Definitions [homes] comment = Home Directories browseable = no writable = yes [other] comment = other! path = /home/otheruser/share force user = otheruser force group = otherusergroup read only = No guest ok = Yes #============================