How to configure Samba to use SMBv2 and disable SMBv1 on Linux or Unix

www.laut‮t‬uri.com
How to configure Samba to use SMBv2 and disable SMBv1 on Linux or Unix

To configure Samba to use SMB version 2 (SMBv2) and disable SMB version 1 (SMBv1) on Linux or Unix, you will need to perform the following steps:

  1. Edit the Samba configuration file, /etc/samba/smb.conf, and add the following line to the global section:
server min protocol = SMB2
  1. Save the changes to the configuration file and exit the text editor.

  2. Restart Samba to apply the changes:

systemctl restart smbd
  1. Test the configuration by connecting to the Samba server using an SMBv2 client.

Note that some older SMB clients may not support SMBv2, and will not be able to connect to the Samba server.

Created Time:2017-10-28 21:39:00  Author:lautturi