Well you pointed me in the right direction Sam !
On an OSMC installation the Samba config file is at: /etc/samba/smb.conf
In the [global] section it contains this line…
lock directory = /var/cache/samba
I commented that out and restarted Samba… then I found that /var/run/samba/locking.tdb now exists and when I run…
smbstatus
I indeed get pid/uid, SMB protocol information etc about the various shares that are being accessed by clients connecting through Samba on OSMC.
When I then un-comment that line and restart Samba again I get the message:
No locked files
… but once again I don’t see any info about the various clients connected to Samba share, even though two clients are connecting to shares defined in that Samba server.
Samba expects /var/run/samba/locking.tdb to exist but it seems to not get created with the current Samba config in OSMC?
I don’t know much about Samba so maybe I’m missing something else along the way but the only changes I made to the smb.conf file was to add one more Samba share definition so maybe there is something there that needs to be tweaked?
I find that smbstatus command really useful for debugging Samba network mounts and commenting out or deleting the line…
lock directory = /var/cache/samba
… made it work for me when it wasn’t
Cheers,
Flex