2014-10-20 76 views
0

自MacOS Yosemite更新以來,我想使用更新的Samba版本(V4),因爲它支持SMB2和SMB3。我將它用於我的開發人員VM,在更新到Samba4之後,舊的公共共享不再工作。我發現security =用戶需要設置,並映射到guest = Bad User需要。但它不起作用。每次嘗試連接時都會要求輸入密碼。Samba4:Public Share

詳情:

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 

任何想法?

+0

嘗試'地圖客人=壞Password'從這裏http://serverfault.com/questions/470650/samba-configuration-for-public-shares – 2016-11-10 12:31:06

回答

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 
+0

謝謝 - 對我來說,它缺少共享定義中的「guest ok = Yes」行。 – Criggie 2016-01-08 02:04:34