我在 Samba 4.14.12 中有这样的配置:
[global]
netbios name = MyRouter
interfaces = br-lan eth0
server string = MyRouter
unix charset = UTF-8
workgroup = WORKGROUP
bind interfaces only = yes
#server min protocol = SMB2
passdb backend = smbpasswd
dns proxy = no
socket options = IPTOS_LOWDELAY TCP_NODELAY
use sendfile = yes
map to guest = Bad User
load printers = no
printcap name = /dev/null
disable spoolss = yes
printing = bsd
client signing = mandatory
## disable core dumps
enable core files = no
#smb encrypt = desired
security = user
mdns name = mdns
#delete veto files = yes
######### Dynamic written config options #########
disable netbios = yes
smb ports = 445
aio read size = 0
aio write size = 0
[HDDSoft]
path = /media/HDDSoft/HDD_DATI/+PC
create mask = 0666
directory mask = 0777
read only = yes
guest ok = no
guest only = yes
[hdd]
path = /media/HDDSoft/HDD_DATI
valid users = root
create mask = 0666
directory mask = 0777
browseable = no
read only = no
guest ok = no
为什么它不显示在网络文件资源管理器中?
Windows 7 使用 SMB 2.1 版。最新版本的 Samba 更喜欢版本 3。取消注释此指令以确保向后兼容性:
另外(正如我之前的评论中所建议的)您的 W7 客户端是否看到您网络中的其他设备?如果没有,请确保您已激活网络发现,因为它并非始终处于默认状态。
我解决了这个问题。问题是缺少wsdd(WSD/LLMNR 发现/名称服务守护程序)协议。
来自Github上的包wsdd2