Windows 10 Keeps asking for authentication for public samba share

I know there are a couple of questions about this, those are different situations though and the provided answers do not relate to my problem.

I have a WD My Cloud EX2 NAS with a configured public share, I can access this share from my windows 10 laptop, windows 10 desktop and android phone without issues or authentication.

However, I did a clean windows 10 install of another desktop and the exact same share keeps asking me for authentication now and wont accept any input I give it.

I tried enabling a certain key in the registry (can't remember the key-name) and rebooting, but that didn't help.

Am I missing something? I'm 100% certain the share is still configured properly since I can still access it from my other machines.

EDIT 1: Something I just realized: the other windows 10 machines are Windows 10 Pro, this system is Windows 10 Home, not sure how that would affect this problem, but that's the only difference I can think of.

EDIT 2: I upgraded to Windows 10 Pro and still can't access the public share.

EDIT 3: When I enter \ as the username and leave the password blank it shows me the share contents, however when I reboot the computer it asks me for credentials again, it won't remember them.

EDIT 4: I have Plex installed on the server, when I get the authentication dialog for the samba share it shows the plex server name in the "domain" field. perhaps this influences the authentication protocol?


Solution 1:

I don't know how, but when I inserted as username \ and left the password field blank suddenly it accepted the credentials and showed me the share contents.

Maybe it will help someone else who has the same issue.

EDIT: when I originally posted this answer I couldn't check the checkbox to remember the credentials, causing me to have to do this on every boot. However, this time it did allow me to check the checkbox, I don't know what changed, but it's working now. might have been a windows update.

Another Edit: Upon every boot I now have to use smbpasswd to re-configure the correct password for the account.

Final Edit: It seems this question is getting a lot of attention, I think I should add that after all this time, I managed to solve the issue.

This is related to 2 possible reasons:

  1. A complete factory-reset
  2. leaving the username as "admin", I can't recall exactly what or why, but changing it to my custom username resulted in issues, whereas leaving it as "admin" worked perfectly fine. Possibly something hardcoded in the NAS firmware.

Solution 2:

Some Items and Resources that may be related

  • https://techjourney.net/cannot-connect-to-cifs-smb-samba-network-shares-shared-folders-in-windows-10/

  • EDIT 1 https://community.wd.com/t/anonymous-share/96348/18

Be sure to check out the above article too regarding a change with Windows 10 and registry key entry, etc. that's related to remote shared folders or network locations on a file server or NAS through CIFS, SMB or Samba protocol.

This talks about turning on allowing insecure guest but also talks about the Windows Credentials options as well.

  • Also, check for a saved credential to remove (or add perhaps) by typing in control keymgr.dll or maybe rundll32 keymgr.dll,KRShowKeyMgr from the RUN and then press enter. Remove (or add perhaps) the stored credentails that shouldn't be there and then see if it works as expected.

Lastly, I'm not sure if when you upgraded if it changed back that registry entry you changed, but it's important to remember what you change and backup before you change in case it doesn't work so you can revert that change back.

I wouldn't get into the habit of trying things and then before you know it you change 10 things so now you're not sure if any of those helped any or made the issue worse so jus think about this moving forward with these types of strategies.

EDIT1: I added a second link URL above that gives some pointers on this leading it to be either a Windows issue or a NAS configuration issue. On my Windows machine, I setup a share and granted ANONYMOUS LOGON both SHARE and NTFS anf then from another Windows machine I mapped a drive to it with \\PCName\ShareName and saved that without specifying a username or a password just fine.