5
2
Server: Samba on Ubuntu 12.04, with security = user
.
A variety of file shares - some need to be accessible by guests, some are allowed users = user1
.
Client: Windows XP, on same workgroup as the server.
Start → Run → \\192.168.1.240
brings up a Windows dialog box asking for username and password, before it's even displayed the list of file shares available on the server. (Supplying user1's password gets past this point, but I think the password shouldn't be required yet)
What could be causing this? How to fix this?
Ideal result: \\192.168.1.240
displays the list of shares (without any credentials), and password is only needed to access the ones with allowed users
or guest ok = no
in smb.conf
.
I had the problem that the windows username was identical to the unix username on the machine running samba. Samba then imported the unix username and therefor always asked for the password. An easy fix was to remove the samba username via
– x29a – 2014-09-24T09:27:47.203pdbedit -x -u <username>
. Also see http://serverfault.com/questions/575394/samba-public-share-windows-keeps-asking-for-password - the rest was taken care of viamap to guest = bad user
in the smb.conf