Samba public share - Windows keeps asking for password

Solution 1:

This was the key option to set to resolve this issue:

[global]
    map to guest = bad user

Solution 2:

I think you are being bitten by Windows 7 and earlier versions not supporting authentication to the same host both anonymously and authenticated. Look at an answer I gave before on Serverfault.


Solution 3:

This is the config that (finally) worked here. I can access a linux server from Windows without asking for a user/password:

[global]
workgroup = MYGROUP
server string = Samba Server %v
netbios name = debian
security = user
map to guest = bad user
dns proxy = no
#============= Share Definitions =================
[adriano]
force user = adriano
path = /home/adriano
browsable =yes
writable = yes
guest ok = yes
read only = no

Solution 4:

I ran into the same issue (Windows kept rejecting the pi's password) until I got a tip from this YouTube video. Basically I had to run the command:

sudo smbpasswd -a pi

to create the pi samba user. On the Windows, I just use RASPBERRYPI\pi as the user, type in the password and it works.