Samba4:公共分享

时间:2014-10-20 15:09:45

标签: samba

自从MacOS Yosemite更新后,我想使用更新的Samba版本(V4),因为它支持SMB2和SMB3。我正在将它用于我的开发人员VM,并且在更新Samba4之后,我的旧公共共享不再起作用了。我发现需要设置security = user并且映射到guest = Bad User需要。但它不起作用。每当我尝试连接时都要求输入密码。

详细说明:

OS: Centos6.5
Samba: 4.0.0rc4

这是当前的配置:

[global]
workgroup = WORKGROUP
security = user
map to guest = Bad User
guest account = vagrant
follow symlinks = Yes
wide links = Yes
unix password sync = Yes
log file = /var/log/samba/log.%m

[development]
comment = Development
path = /var/development
public = Yes
read only = No
writeable = Yes
browseable = Yes
guest ok = Yes

以下部分是连接字符串:

mount_smbfs cifs://192.168.177.12/development/ ./development

有什么想法吗?

1 个答案:

答案 0 :(得分:0)

似乎是跟随符号链接和宽链接的参数已移至共享部分。

以下是适用的配置:

[global]
workgroup = WORKGROUP
security = user
map to guest = bad user
guest account = vagrant
dns proxy = no
unix extensions = no

[development]
comment = Development
path = /var/development
read only = no
writeable = yes
browseable = yes
guest ok = yes
follow symlinks = yes
wide links = yes