8

On our Windows file servers SMBv1 was switched of recently due to security problems and a password policy introduced.

Since then we can't mount any more the shares from Ubuntu 16.04 using Gigolo. We get the German Error "Einhängen der Windows-Freigabe ist fehlgeschlagen: Die Wartezeit für die Verbindung ist abgelaufen" (timeout)

Now we were able to track down the problem to SMBv1 when mounting manually:

sudo mount -t cifs -o username=me //foo.local/digital /mnt

does not work, while

sudo mount -t cifs -o vers=2.0,username=me //foo.local/digital /mnt

does work.

So far so good - but we do not want to miss the comfort of mounting via Gigolo / Thunar.

How can Gigolo / Thunar (I think the both are based on GVFS) be told to use smbV2?

Alex
  • 1,062

1 Answers1

10

Yes, but it comes at a price. Unlike mount.cifs gvfs and thunar use libsmbclient to access shares and it limits itself to the NT1 (SMB1) dialect.

But you can change that by editing /etc/samba/smb.conf and adding the following to the [global] section:

client max protocol = SMB3

There's another one at the minimum but it normally isn't required to do anything with that:

client min protocol = SMB2

The server and the client will auto-negotiate the best dialect to use between those two values.

The problem is this will disable host browsing so if you go to Network in your file browser it will be empty. Accessing it by name still works but must be done explicitly.

Morbius1
  • 8,437