Trouble connecting to network drive from Windows

  • I'm running LibreElec on an RPi4, all updated latest versions.

    I have an SSD connected to the Pi, and I've mapped this SSD as a network drive to my Windows computers. I have a PC (Win11, 26100.6584) and a laptop (Win11, 26100.6584). Both on the same network in my building, aside from automatic Windows updates I've changed no configurations on either of these. Home network is set to "private" on both.

    However, it's suddenly stopped working on the PC. It detects the SSD as a network location via the "Network" tab, but clicking on it demands a password (nothing works - I'm not quite sure what password to use anyway) and also says "You can't access this shared folder because your organization's security policies block unauthenticated guest access. These policies help protect your PC from unsafe or malicious devices on the network." This is my home computer, not an organization's one.

    Trying to add it back as a mapped network drive says "The network path was not found".

    SSHing into it works fine, and it was working up until about two weeks ago (hard to say, I've been unable to check it for a while due to life things). On my laptop it works perfectly fine - I even removed it and re-added it today just to check (and from the laptop it doesn't ask for a password).

    AI is telling me to go into the registry to allow "unauthorized guest access" which confuses me as a) why do I suddenly need to do it, and b) the "authorized" access doesn't work anyway. Very confused about the whole thing and why it suddenly changed. Any help would be greatly appreciated.

  • Strange that you don't encounter the issues on both instances of Windows 11, but perhaps one of the devices upgraded to 24H2 whereas the other came with that version of Windows? The reason? Microsoft's attempt to guard you against "insecure" samba connections.

    In any case you should be able to resolve with PowerShell commands (ran as admin):

    Set-SmbClientConfiguration -EnableInsecureGuestLogons $true -Force

    Set-SmbClientConfiguration -RequireSecuritySignature $false -Force

    Set-SmbServerConfiguration -RequireSecuritySignature $false -Force

  • LE Settings > Services > Samba > enable "Use Samba Password Authentication" and then change the libreelec users' default and well known libreelec password. Windows should be happy with that and there's no need to disable any security settings that MS will inevitably force back to 'on' again in some future update.