Hi fzinken,
OK installed smbclient.
Output is as follows:
smbclient -L 192.168.1.223
Enter osmc’s password:
protocol negotiation failed: NT_STATUS_CONNECTION_RESET
smbclient -U=sambauser -L 192.168.1.223
Enter sambauser’s password:
protocol negotiation failed: NT_STATUS_CONNECTION_RESET
I found the following on another webpage:
Win10 no longer enables SMB1 by default in new releases. Regrettably, Linux file managers can only access samba servers using SMB1 which results in the exact error message you received.
You can verify if this is the problem by invoking the following command - replace 192.168.0.101 with the ip address of the Win10 machine:
Code: Select all
smbclient -L 192.168.0.101
If it’s the SMB1 problem you should get this error message:
protocol negotiation failed: NT_STATUS_CONNECTION_RESET
I am running current Windows 10 releases on our computers.
EDIT: The 4.13 Linux Kernel changed the default CIFS SMB version from SMB1 to SMB3.
I checked the Linux Kernel version on the OSMC box and it is 4.2.3-25-osmc so I think this is why I am getting a blank screen.>
[1] On the smbclient end you edit /etc/samba/smb.conf and add the following line - right under the workgroup = WORKGROUP
line:
Code: Select all
client max protocol = SMB3
I tried to create a new /etc/samba/smb-local.conf and added the line but it is still using the /etc/samba/smb.conf
testparm
Load smb config files from /etc/samba/smb.conf
Processing section “[osmc]”
Processing section “[automount template]”
Can’t find include file /etc/samba/smb-shares.conf
Loaded services file OK.
WARNING: socket options = TCP_NODELAY IPTOS_LOWDELAY SO_RCVBUF=131072 SO_SNDBUF=131072
This warning is printed because you set one of the
following options: SO_SNDBUF, SO_RCVBUF, SO_SNDLOWAT,
SO_RCVLOWAT
Modern server operating systems are tuned for
high network performance in the majority of situations;
when you set ‘socket options’ you are overriding those
settings.
Linux in particular has an auto-tuning mechanism for
buffer sizes (SO_SNDBUF, SO_RCVBUF) that will be
disabled if you specify a socket buffer size. This can
potentially cripple your TCP/IP stack.
Getting the ‘socket options’ correct can make a big
difference to your performance, but getting them wrong
can degrade it by just as much. As with any other low
level setting, if you must make changes to it, make
small changes and test the effect before making any
large changes.
Server role: ROLE_STANDALONE
Press enter to see a dump of your service definitions
My first question is how do I get Samba to use the smb-local.conf file instead of smb.conf?
All I did was copied smb.conf to smb-local.conf, pico /etc/samba/smb-local.conf and added the client max protocol line.
If I put that line in smb.conf I am getting some results when running smbclient (still some errors but different to before).
For some reason it is not referring to smb-local.conf
The first line in smb.conf is
config file = /etc/samba/smb-local.conf
It is not # commented out.
Confused.
Regards,
fbagnato