Table of Contents

Disabling SMBv1 on Ubuntu

Overview

Version 1 of the SMB protocol has been disabled on the Faculty of Science print server for security.  To print, you need to configure your system to use SMB version 2 or above.  This document details the process of configuring an Ubuntu system to use SMBv2 and above.

Process

Open a terminal and install the package smbclient

sudo apt install -y smbclient

Paste the following command to disable SMBv1:

sudo sed -i '/^\s*\[global\]/ a \ \ \ client min protocol = SMB2\n\ \ \ client max protocol = SMB3' /etc/samba/smb.conf

This will add the following two lines after the [global] section header in /etc/samba/smb.conf

[global]
   client min protocol = SMB2
   client max protocol = SMB3

Restart your computer to ensure the change takes effect You can now proceed with Installing a Printer on Ubuntu.