There are multiple SMB protocol versions that can be set used, by editing /etc/samba/smb.conf
[global]
min protocol = SMB2I can set a minimum, and maximum version for my system. However, this could leave a range of versions that are actually used.
Is it possible to set a preferred version, which is used if both the client and server support this version?
Or is there a way to get SMB to use the latest compatible version, not the minimum (seeing as it defaults to version 1.0)?
samba - Available min max values for SMB protocol - Unix & Linux Stack Exchange
Samba & NTLMv1/v2 support
SMB is SAMBA... According to some. Facepalm!
[Question] Set preferred samba protocol version
The exact settings are:
- client min protocol
- client max protocol
Then you should configure your /etc/samba/smb.conf with the following commands on [GLOBAL] section
[GLOBAL]
client min protocol = SMB2
client max protocol = SMB3
after that you should restart smb service as root:
# systemctl restart smb
# systemctl restart nmd
man smb.conf for more details
If you are mounting your shares through fstab on the client, then include vers=3.0 as an option after cifs and that will set up a SMB 3.0 connection.
When I tried to up the min protocols on the server, many of my clients could not connect. I had better luck setting the version number on the client side. (I am still learning this myself.)