[Bug 1598463] Re: samba client negotiates down to NT1 instead of up to SMB3_11, doesn't happen with Windows 10 client
Julian Alarcon
alarconj at gmail.com
Fri Aug 4 22:25:53 UTC 2017
It shouldn't be marked as invalid. I can't access Shared Folders of
Windows 10 using Ubuntu 17.10 on Nautilus, I found a workaround, use
option -m SMB3 (I have to change smb.conf).
julian at e01a27166:/var/log/samba$ smbclient -L //10.80.35.54 -U julian.alarcon -m SMB1
WARNING: Ignoring invalid value 'SMB1' for parameter 'client max protocol'
WARNING: The "syslog" option is deprecated
Enter julian.alarcon's password:
protocol negotiation failed: NT_STATUS_CONNECTION_RESET
julian at e01a27166:/var/log/samba$ smbclient -L //10.80.35.54 -U julian.alarcon -m SMB3
WARNING: The "syslog" option is deprecated
Enter julian.alarcon's password:
Domain=[CARACOL] OS=[] Server=[]
Sharename Type Comment
--------- ---- -------
ADMIN$ Disk Remote Admin
C$ Disk Default share
CARACOL Disk
Downloads Disk
IPC$ IPC Remote IPC
Registro Disk
Connection to 10.80.35.54 failed (Error NT_STATUS_RESOURCE_NAME_NOT_FOUND)
NetBIOS over TCP disabled -- no workgroup available
Workaround:
Edit /etc/samba/smb.conf
Add this line in [global] section:
client max protocol = SMB3
Then restart Samba services with:
sudo systemctl restart smbd
sudo systemctl restart nmbd
Now I can connect to shared folder in Windows 10 from Nautilus (Ubuntu 17.10)
** Changed in: samba (Ubuntu)
Status: Invalid => Confirmed
--
You received this bug notification because you are a member of Ubuntu
Foundations Bugs, which is subscribed to samba in Ubuntu.
https://bugs.launchpad.net/bugs/1598463
Title:
samba client negotiates down to NT1 instead of up to SMB3_11, doesn't
happen with Windows 10 client
Status in samba package in Ubuntu:
Confirmed
Bug description:
Clients: Windows 10 Pro 64-bit, Ubuntu 16.04
Client and server samba version:
apt policy samba
samba:
Installed: 2:4.3.9+dfsg-0ubuntu0.16.04.2
Candidate: 2:4.3.9+dfsg-0ubuntu0.16.04.2
Version table:
*** 2:4.3.9+dfsg-0ubuntu0.16.04.2 500
500 http://us.archive.ubuntu.com/ubuntu xenial-updates/main amd64 Packages
500 http://us.archive.ubuntu.com/ubuntu xenial-security/main amd64 Packages
100 /var/lib/dpkg/status
2:4.3.8+dfsg-0ubuntu1 500
500 http://us.archive.ubuntu.com/ubuntu xenial/main amd64 Packages
What is expected to happen is by default if one makes a connection via
Ubuntu 16.04 using Nautilus or smbclient to Ubuntu 16.04 samba server,
it automatically negotiates to the highest protocol available from the
samba server (SMB3_11), just like it does when connecting from a
Windows 10 client.
What happens instead is via Nautilus or smbclient it consistently
negotiates to NT1, making the share useless from a speed perspective
when connecting over ethernet or 802.11ac.
From the client:
$ smbclient //192.168.0.107/share
On the server:
$ sudo smbstatus
Samba version 4.3.9-Ubuntu
PID Username Group Machine Protocol Version
------------------------------------------------------------------------------
3970 moniker moniker 192.168.0.101 (ipv4:192.168.0.101:49966) NT1
Service pid machine Connected at
-------------------------------------------------------
share 3970 192.168.0.101 Sat Jul 2 11:09:09 2016
No locked files
However, if I modify the smbclient as follows it does negotiate to SMB3_11:
smbclient //192.168.0.107/share -m SMB3_11
From the server:
sudo smbstatus
Samba version 4.3.9-Ubuntu
PID Username Group Machine Protocol Version
------------------------------------------------------------------------------
3980 moniker moniker 192.168.0.101 (ipv4:192.168.0.101:49968) Unknown (0x0311)
Service pid machine Connected at
-------------------------------------------------------
share 3980 192.168.0.101 Sat Jul 2 11:10:34 2016
No locked files
From the server:
$ smbclient -L localhost
Domain=[WORKGROUP] OS=[Windows 6.1] Server=[Samba 4.3.9-Ubuntu]
Sharename Type Comment
--------- ---- -------
print$ Disk Printer Drivers
IPC$ IPC IPC Service (pc server (Samba, Ubuntu))
share Disk
Domain=[WORKGROUP] OS=[Windows 6.1] Server=[Samba 4.3.9-Ubuntu]
Server Comment
--------- -------
PC pc server (Samba, Ubuntu)
Workgroup Master
--------- -------
WORKGROUP
The smb.conf file is default with a handful of changes below, not relating to protocol (removing them doesn't change anything). Also, declaring min protocol to be SMB3 causes the share not to be visible by Nautilus:
[global]
encrypt passwords = true
server signing = mandatory
inherit acls = yes
inherit owner = yes
inherit permissions = yes
[share]
path = /home/moniker/Desktop/share
read only = no
guest ok = yes
writeable = yes
browseable = yes
ProblemType: Bug
DistroRelease: Ubuntu 16.04
Package: samba 2:4.3.9+dfsg-0ubuntu0.16.04.2
ProcVersionSignature: Ubuntu 4.4.0-28.47-generic 4.4.13
Uname: Linux 4.4.0-28-generic x86_64
ApportVersion: 2.20.1-0ubuntu2.1
Architecture: amd64
CurrentDesktop: GNOME-Flashback:Unity
Date: Sat Jul 2 11:05:33 2016
InstallationDate: Installed on 2015-12-18 (196 days ago)
InstallationMedia: Ubuntu 15.10 "Wily Werewolf" - Release amd64 (20151021)
SambaClientRegression: No
SourcePackage: samba
UpgradeStatus: Upgraded to xenial on 2016-01-20 (164 days ago)
To manage notifications about this bug go to:
https://bugs.launchpad.net/ubuntu/+source/samba/+bug/1598463/+subscriptions
More information about the foundations-bugs
mailing list