This Howto has [3] parts with a Windows 10/11 link on part [3].
Between a bug in gvfs and Sambas decision to disable SMB1 on both server and client the following problems occur:
[1] Connecting to a server that has disabled SMB1 ( Windows 10, Ubuntu 20, Mint 20, ...etc )
You will get a
Failed to retrieve share list from server
: error followed by one of the following:Network dropped connection on reset
. If the server is running Win10.Invalid argument
. If the server is running Linux.There are three ways around this issue:
[1a] You could override the default setting of Samba and reinstate SMB1 ( Samba calls it NT1 ) on all your Linux machines.
Edit /etc/samba/smb.conf and right under the workgroup = WORKGROUP line add these:
Code: Select all
client min protocol = NT1
server min protocol = NT1
You will have to do the equivalent to your Win10 box.
Or you can keep smb.conf as it is without SMB1 and do one of the following:
[1b] You can bypass the gvfs bug and connect to the server directly by name and share.
So in Connect to Server for example:
Code: Select all
smb://hostname.local/share-name
smb://host-ip-address/share-name
For example:
Code: Select all
sudo mount -t cifs -o guest,uid=1000 //hostname.local/share-name /mount-point
mount.cifs mount will also negotiate the best smb dialect ( between SMB2.1 and SMB3 ) but it is free of the gvfs bug.
This can be set up in fstab ( with a syntax change ) so you don't have to mount it manually.
[2] Connecting to a server that only uses SMB1 - many NAS and Routers do that:
You will get an error that looks something like this:
Failed to retrieve share list from server:
Software caused connection abort
There are 2 ways around this issue:
[2a] Reinstate smb1 on the client side of Mint:
Edit /etc/samba/smb.conf and right under the workgroup = WORKGROUP line add:
Code: Select all
client min protocol = NT1
Code: Select all
client lanman auth = yes
Code: Select all
client ntlmv2 auth = no
Code: Select all
server min protocol = NT1
ntlm auth = Yes
[2b] OR, Use a CIFS mount - specify SMB1 ( CIFS calls it vers=1.0 ) in the mount options:
Example:
Code: Select all
sudo mount -t cifs -o guest,uid=1000,vers=1.0 //hostname.local/share-name /mount-point
Code: Select all
sudo mount -t cifs -o guest,uid=1000,vers=1.0,sec=ntlm //hostname.local/share-name /mount-point
For more on CIFS mounts please see this: viewtopic.php?f=42&t=326160
[3] Windows 10 /11 Considerations
I have a companion Tutorial that deals with Windows 10 / 11 here: Windows 10 and Samba File Sharing
Special Note: Should you decide to reset yourself back to SMB1 levels and you are using Legacy unsupported versions of Windows ( i.e. anything earlier than Win10 ) you need to follow the old NetBIOS rules: Samba Browsing Problems Checklist