samba client negotiates down to NT1 instead of up to SMB3_11, doesn't happen with Windows 10 client
Affects | Status | Importance | Assigned to | Milestone | |
---|---|---|---|---|---|
samba (Ubuntu) |
Invalid
|
Undecided
|
Unassigned |
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+
Candidate: 2:4.3.9+
Version table:
*** 2:4.3.9+
500 http://
500 http://
100 /var/lib/
2:
500 http://
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.
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.
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.
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.
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/
read only = no
guest ok = yes
writeable = yes
browseable = yes
ProblemType: Bug
DistroRelease: Ubuntu 16.04
Package: samba 2:4.3.9+
ProcVersionSign
Uname: Linux 4.4.0-28-generic x86_64
ApportVersion: 2.20.1-0ubuntu2.1
Architecture: amd64
CurrentDesktop: GNOME-Flashback
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)
SambaClientRegr
SourcePackage: samba
UpgradeStatus: Upgraded to xenial on 2016-01-20 (164 days ago)
client max protocol = SMB3_11 may help, but that's not the default as not everything is completely
working (on the client side) in this mode.