Here is some additional information that I could gather over this
problem:

- smbstatus from samba 4.3.1 also shows the Protocol version from
connected clients:

root@vdebian:~# smbstatus -v
using configfile = /usr/local/samba/etc/smb.conf

Samba version 4.3.1
PID     Username      Group         Machine            Protocol Version
------------------------------------------------------------------------------
733       client1          clients          192.168.1.21 
(ipv4:192.168.1.21:57591) Unknown (0x0311)
Opened /usr/local/samba/var/lock/connections.tdb
...

Unless I force Win10 to use SMBv1 it talks to samba with SMBv3 and in this case 
smbstatus reports "Unknown (0x0311)".  Otherwise (with SMBv1, an XP- or 
Linux-client) it shows a correct Version like "NT1".
Also see https://bugzilla.samba.org/show_bug.cgi?id=11472


- When using the -v option with smbstatus, it prints the line "Opened 
/usr/local/samba/var/lock/connections.tdb". When I browse this directory and 
look for connections.tdb, the file simply does not exist.


- The problems as shown above only occur when a Windows-client connects via 
SMBv2/3 (e.g. Win7/8/10) to Samba 4.1.x (maybe also 4.0.x, I haven't testet 
yet).

So in my  layman's terms I would explain it like this: on the one hand
it's the clients fault when it doesn't tell to the server to release
locked files. Maybe SMBv2/3 uses some faulty functionality that is
completely ignored by Samba 3.x and therefore causes no issue - other
than Samba 4.x. On the other hand the server should be able to detect
dead connections and close them after a while since there is a chance
that the client lost the connection unexpectedly or because of external
reasons.

** Bug watch added: Samba Bugzilla #11472
   https://bugzilla.samba.org/show_bug.cgi?id=11472

-- 
You received this bug notification because you are a member of Ubuntu
Server Team, which is subscribed to samba in Ubuntu.
https://bugs.launchpad.net/bugs/1392647

Title:
  smbstatus reports dead connection as active

To manage notifications about this bug go to:
https://bugs.launchpad.net/ubuntu/+source/samba/+bug/1392647/+subscriptions

-- 
Ubuntu-server-bugs mailing list
Ubuntu-server-bugs@lists.ubuntu.com
Modify settings or unsubscribe at: 
https://lists.ubuntu.com/mailman/listinfo/ubuntu-server-bugs

Reply via email to