Windows XP无法连接到samba共享(linux服务器20.04)

kur*_*age 9 server samba networking password file-sharing

我是 Linux 和 samba 服务器的新手。

我尝试设置 samba 服务器。我的Windows 7和Windows 10可以完美连接到Samba服务器。

问题是 Windows XP 无法连接或浏览 samba 服务器,它说:“Windows 找不到“\server”。检查拼写并重试......”

这是我的conf设置:

[global]
passwd chat = *Enter\snew\s*\spassword:* %n\n *Retype\snew\s*\spassword:* %n\n *password\supdated\ssuccessfully* .
unix password sync = yes
winbind trusted domains only = yes
username map = /etc/samba/smbusers
os level = 20
client min protocol = NT1
encrypt passwords = yes
map to guest = bad user
workgroup = WORKGROUP
netbios name = server
security = user
panic action = /usr/share/samba/panic-action %d
guest ok = yes
lanman auth = yes
log file = /var/log/samba/log.%m
max log size = 1000
ntlm auth = yes
passwd program = /usr/bin/passwd %u
obey pam restrictions = yes
logging = file
winbind use default domain = yes
server string = 
usershare allow guests = yes
auto services = global
server role = standalone server
pam password change = yes
Run Code Online (Sandbox Code Playgroud)

在此输入图像描述

请帮忙

小智 11

使用旧版 Windows XP 和 Debian 10 上的 Samba 4.9.5

server min protocol = NT1

lanman auth = yes

ntlm auth = yes
Run Code Online (Sandbox Code Playgroud)

  • 在我的例子中添加“server min protocol = NT1”是不够的。我还需要添加“lanman auth = yes”和“ntlm auth = yes”,如本答案中所述。只需重新启动 Samba 就足够了...在我的例子中使用命令:`systemctl restart samba` 谢谢。 (2认同)

小智 8

您设置了“客户端最小协议 = NT1”,还有另一个类似的设置“服务器最小协议”,从 Samba 4.11.0 开始将其设置为 SMBv2。您的 XP 可能仅使用 SMBv1,因此它将无法查看或连接到您的 Samba 服务器。

因此,您必须编辑[global]中的部分/etc/samba/smb.confserver min protocol = NT1在此处添加选项。然后重新启动Samba服务。