Results 1 to 6 of 6

Thread: Cannot connect to Samba share (4.1.11) from Windows 10

  1. #1
    Join Date
    Oct 2006
    Beans
    8

    Cannot connect to Samba share (4.1.11) from Windows 10

    Hi!

    I have a Samba server version 4.1.11 running on Ubuntu Server 14.04. I cannot connect from Windows 10 (but I can from Windows 7).

    The server and the clients are not on the same LAN.

    The error message given by Windows is that the server is online but not responding. However the Samba logs say otherwise.

    I have attached the logs for a failed connection attempt from Windows 10, and those for a successful attempt from Windows 7 (for comparison).

    Briefly, unlike the successful attempt, the failed one starts with:

    Code:
    switch message SMBnegprot (pid 2855) conn 0x0
    then it requests a number of different protocols before selecting SMB2_FF. Then, after some security negotiations, it switches to protocol SMB 2.???, then SMB3_00, followed by:

    Code:
    Server exit (NT_STATUS_END_OF_FILE).
    The successful attempt selects protocol SMB2_10 from the start, but this protocol is not even requested by Windows 10.

    Here are the logs :

    Failed attempt (from Windows 10)
    http://pastebin.com/M0xmBuY3

    Successful attempt (from Windows 7)
    http://pastebin.com/jF8VzaiA

    smb.conf
    http://pastebin.com/CWYqGuBa

  2. #2
    Join Date
    May 2007
    Location
    NY's first capital
    Beans
    2,816
    Distro
    Ubuntu 18.04 Bionic Beaver

    Re: Cannot connect to Samba share (4.1.11) from Windows 10

    I see some unconventional share configuration.

    What is "<user>" accomplishing? Is this to force samba to accept any username?

    I suggest setting up a simple share without "<user>" to see if you can connect?

    Are you trying to connect to a specific share, or the root of the server?

    You say the Window's 10 machine is on a separate LAN. Do windows 7 machines also connect from the same separate LAN?
    Nothing is ever easy, but if it is difficult you must be doing it wrong.

  3. #3
    Join Date
    Oct 2006
    Beans
    8

    Re: Cannot connect to Samba share (4.1.11) from Windows 10

    Hi, thanks for your answer! <user> is just a stand-in for the actual user name. The configuration file has some username where <user> is written here.

    I am trying to connect to a specific share (I think). I write \\<url>\<folder> when I try to connect from Windows.

    Yes, Windows 7 and Windows 10 are on the same LAN.

    This solved my problem:

    Windows 10 will try to negotiate SMB3_11, which Samba4 doesn't yet support
    except in the current 4.3 release candidate. I suspect for now disabling
    SMB2/3 on the Windows 10 client is your best, if not ideal, option.

    Instructions for doing.this can be found
    here: https://support.microsoft.com/en-us/kb/2696547
    https://lists.samba.org/archive/samb...er/193886.html
    Last edited by howefield; January 28th, 2016 at 03:42 PM.

  4. #4
    Join Date
    Dec 2009
    Beans
    6,426

    Re: Cannot connect to Samba share (4.1.11) from Windows 10

    Windows 10 will try to negotiate SMB3_11, which Samba4 doesn't yet support
    except in the current 4.3 release candidate. I suspect for now disabling
    SMB2/3 on the Windows 10 client is your best, if not ideal, option.
    Hm......

    If I connect to my Xubuntu machine from Windows 10:
    w10toLinux.png
    I can get access to it's samba shares without any adjustment to Windows:
    w10Explorer.png
    It even works using the legacy netbios mechanism:
    w10Explorer2.png
    Now I'm running samba 4.1.6 in Xubuntu. And this is a home lan where everyone is in the same network. But if there was an incompatibility in SMB levels I would think it would impact me as well. Maybe it's a Samba 4.1.11 issue.
    Last edited by Morbius1; September 12th, 2015 at 05:32 PM.

  5. #5
    Join Date
    Jan 2016
    Beans
    1

    Re: Cannot connect to Samba share (4.1.11) from Windows 10

    How did you solve it?
    I tried the link you mentioned but ended up fail.

    I disabled SMB2/3 according to the instruction.

    1. Open the PowerShell with admin authority and type

    Code:
    Set-ItemProperty -Path "HKLM:\SYSTEM\CurrentControlSet\Services\LanmanServer\Parameters" SMB2 -Type DWORD -Value 0 -Force
    
    2. Open the command line window with admin authority and type

    Code:
    sc.exe config lanmanworkstation depend= bowser/mrxsmb10/nsi
    sc.exe config mrxsmb20 start= disabled
    Every command did not show any errors.
    So I restarted my PC to see nothing changed.
    It still doesn't work.

    Can you explain more details what you have done?

    Thanks.

    ps.
    I'm using Windows10 and Ubuntu14.04 with samba 4.1.6.
    Last edited by LeeJaeJun; January 28th, 2016 at 03:41 PM.

  6. #6
    Join Date
    Dec 2009
    Beans
    6,426

    Re: Cannot connect to Samba share (4.1.11) from Windows 10

    I'm using Windows10 and Ubuntu14.04 with samba 4.1.6.
    I suspect that you should probably start a new topic since it has nothing to do with this one.

    And you might want to describe the issue you are having. The Win10 machine can't see the Ubuntu machine or you can't connect to the Ubuntu machine? There’s a problem with Win10 "discovering" the Linux machine. It has no problem connecting to one - you just have to ask for it by name.

    Besides the whole premise of this doesn't make sense to me:
    Windows 10 will try to negotiate SMB3_11, which Samba4 doesn't yet support
    except in the current 4.3 release candidate. I suspect for now disabling
    SMB2/3 on the Windows 10 client is your best, if not ideal, option.
    I just connected to a Xubuntu 14.04 samba share from WIn10. If I look at the connection parameters on WIn10 this is what I see:
    Code:
    Windows PowerShell
    Copyright (C) 2015 Microsoft Corporation. All rights reserved.
    
    PS C:\WINDOWS\system32> Get-SmbConnection | Select ServerName,ShareName,Dialect
    
    ServerName ShareName Dialect
    ----------   ---------  -------
    xub1404.local  Downloads   3.0
    There’s no doubt that Win10 starts with SMB3_11 but both it and the samba server can auto-negotiate this.

Bookmarks

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts
  •