Windows: Cannot access samba share as Guest

Hi,

since some later Versions of Windows 10 it is no longer possible to access Samba Public shares with Guest access as Windows User SYSTEM(i.e. from Schedule Tasks).

The error occured is:

The specified server cannot perform the requested operation.

Microsoft has limited the Guest Account in Windows 10 and connections with null sessions (User and Password are null) are prevented:

net use \\yourSambaServer\yourInsecureShare /user:"" ""
The specified server cannot perform the requested operation.

Windows resets the tcp session after the smb2 Sessions Setup Response of Samba:

Windows Guest Account Reset TCP Connection

Windows Guest Account Reset TCP Connection

In the samba log you find some strange errors like “smbd_change_to_root_user”, NT_STATUS_CONNECTION_RESET….

Two workarouds which brings back to old behaviour. Set the Samba max protocol to SMB1

[global]
...
        map to guest = Bad User
        guest account = nobody
...
        client min protocol  = nt1
        client max protocol  = nt1
        server max protocol  = nt1
...
[yourInsecureShare]
        guest ok = yes

Or, the prefered way, set

reg add HKLM\SYSTEM\CurrentControlSet\Services\LanmanWorkstation\Parameters /v AllowInsecureGuestAuth /d 1 /f /t REG_DWORD

Michael

Time limit is exhausted. Please reload CAPTCHA.

Original Theme by Schiy · Powered by WordPress