Windows 10 Home cannot connect to samba share on Linux

Posted on

Problem :

I can’t get a new Windows 10 Home laptop to connect to my network shares. On Windows XP I had to enable plain text passwords. I tried that on Windows 10, but it did not work.

HKEY_LOCAL_MACHINESYSTEMCurrentControlSetServicesLanmanWorkstationParameters
EnablePlainTextPassword=1

I also added AllowInsecureGuestAuth with no change.

HKEY_LOCAL_MACHINESYSTEMCurrentControlSetServicesLanmanWorkstationParameters
AllowInsecureGuestAuth=1

SMB 1.0/CIFS File Sharing Support is enabled in Windows features.

I can see the Linux server in the network, but when I try to connect I get these errors:

Windows Error

System error 86 The specified network password in not correct.

Samba Server Error

domain_client_validate: unable to validate password for user USER in
domain MYDOMAIN to Domain controller \CONTROLLER Error was
NT_STATUS_WRONG_PASSWORD.

I can SSH to the server.

I was able to get a Windows 10 desktop to connect about a year ago, but I failed to note what made that one work. Lesson learned. How do I fix it?

Our network is old.

Server: SUSE Linux 9.3
Samba: 3.0.9
Domain Controller: Win NT 4.0

Here are all the parameters:

[HKEY_LOCAL_MACHINESYSTEMCurrentControlSetServicesLanmanWorkstationParameters]
    AllowInsecureGuestAuth   = 1
    EnablePlainTextPassword  = 1
    EnableSecuritySignature  = 0
    RequireSecuritySignature = 0
    ServiceDllUnloadOnStop   = 1
    ServiceDll               = %SystemRoot%System32wkssvc.dll

Solution :

Although it may break future versions of Windows Server that your computer may try to connect to, you can try to force SMB1 (not recommended).

  1. Open up an Administrative Powershell (or Command Prompt) session (Windows+X, A)

  2. Execute the following two commands, then reboot:

    sc.exe config lanmanworkstation depend= bowser/mrxsmb10/nsi 
    sc.exe config mrxsmb20 start= disabled
    
  3. Try accessing the shares again, using the username/password combo you setup already.

Reference (and how to reverse): Microsoft Support

Leave a Reply

Your email address will not be published. Required fields are marked *