Windows XP cannot connect to samba share (linux server 20.04)

i am new to linux and samba server.

i try to setup samba server. my windows 7 and windows 10 can connect perfectly to samba server.

the problem is windows XP cannot connect nor browse the samba server, it said : "windows cannot find "\server". Check the spelling and try again....."

and this is my conf setting :

[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

enter image description here

please help


Solution 1:

You have 'client min protocol = NT1' set, there is another similar setting 'server min protocol' which from Samba 4.11.0 is set to SMBv2. Your XP is probably only using SMBv1, so it will not be able to see or connect to your Samba server.

So you have to edit the [global] section in the /etc/samba/smb.conf and add the server min protocol = NT1 option here. Then restart the Samba service.

Solution 2:

With a old Windows XP and Samba 4.9.5 on a Debian 10

server max protocol = NT1

lanman auth = yes

ntlm auth = yes