Quantcast
Channel: Raspberry Pi Forums
Viewing all articles
Browse latest Browse all 8093

Troubleshooting • Samba authentication error on one but not another Raspi

$
0
0
Hello,
I have 2 Raspberry Pis that have an ethernet connection to my router that I connect to with a Samba share from my windows 11 computer. After I changed routers and static IPs due to changing ISPs, One of my raspi's connects to the computer with not problem. The other Raspi which used to work with the old router, no longer works. When I try to connect it gives a "the username or password is incorrect". I am using the exact credentials that I used to use with the old router, so it's not an issue of the username or password.

The Raspberry PI that works is a Raspberry pi 2B that I use as a file server. It is running Samba version 4.9.5-Debian.

here is the contents of the smb.conf file.

Code:

[global]security = user  workgroup = WORKGROUP   log file = /var/log/samba/log.%m   max log size = 1000   logging = file   panic action = /usr/share/samba/panic-action %d   server role = standalone server   obey pam restrictions = yesunix password sync = yespasswd program = /usr/bin/passwd %upasswd chat = *Enter\snew\s*\spassword:* %n\n *Retype\snew\s*\spassword:* %n\n *password\supdated\ssuccessfully* . pam password change = yes map to guest = bad user[PiDrive]path = /media/externalavailable = yesvalid users = jasonread only = nobrowseable = yespublic = yeswritable = yescreate mask = 0777directory mask = 0777

The raspberry pi that I cannot connect to is a Rasberry pi 5 that I use as a Minecraft server. As a server is works just fine. It is running Samba version 4.17.12-Debian

here is the contents of the smb.conf file.

Code:

[global]security = user  workgroup = WORKGROUP   log file = /var/log/samba/log.%m   max log size = 1000   logging = file   panic action = /usr/share/samba/panic-action %d   server role = standalone server   obey pam restrictions = yesunix password sync = yespasswd program = /usr/bin/passwd %upasswd chat = *Enter\snew\s*\spassword:* %n\n *Retype\snew\s*\spassword:* %n\n *password\supdated\ssuccessfully* . pam password change = yes map to guest = bad user[PiDrive]path = /media/externalavailable = yesvalid users = jasonread only = nobrowseable = yespublic = yeswritable = yescreate mask = 0777directory mask = 0777
I have tried adding the below but it didn't work.

Code:

#client min protocol = SMB3#client max protocol = SMB3#client smb encrypt = required#client signing = required#server min protocol = SMB3#server max protocol = SMB3#ntlm auth = ntlmv2-only
Please help me figure out what is wrong that I can't connect to samba share.

Statistics: Posted by jasonn39 — Sat Dec 27, 2025 10:41 pm



Viewing all articles
Browse latest Browse all 8093

Trending Articles