Ubuntu 22.04 Samba无法从Windows连接的问题求助
Ubuntu 22.04 Samba无法从Windows连接的问题求助
我最近在Ubuntu 22.04服务器上部署了Samba服务,结果遇到个头疼的问题:Linux设备能正常访问共享文件夹,但Windows设备完全连不上。
我已经做了这些排查:
- 确认端口139和445在回环接口和局域网接口上都是开放并处于监听状态
- Windows PC可以正常ping通服务器
- 为了测试,特意把共享设置成无需凭据的公开模式,但还是无法建立连接
感觉肯定是漏掉了某个关键配置,实在找不到问题所在了。下面是我的smb.conf完整配置:
[global] workgroup = WORKGROUP netbios name = WORKGROUP passdb backend = smbpasswd security = user client min protocol = NT1 server min protocol = NT1 server string = %h server server role = standalone server interfaces = lo bond0 bind interfaces only = yes disable netbios = yes smb ports = 445, 139 log file = /var/log/samba/smb.log.%m max log size = 10000 log level = 3 passdb:5 auth:5 ===== Share Definitions ===== [filearchive] path = /share/archive/filearchive browseable = yes read only = no force create mode = 0660 force create mode = 2770 valid users = filebackupuser, root public = yes
有没有大佬能帮忙分析一下问题出在哪?非常感谢!
备注:内容来源于stack exchange,提问作者LifeWithLucifer
相关产品推荐
相关产品推荐

