The last few releases of Ubuntu introduced a number of changes to Samba itself, its Linux kernel component, and even how Ubuntu configured it.
Mint 19 as a Samba Client
[A] Are you trying to get a list of all the samba / smb servers on your network from your file manager?
EDIT: This issue has been fixed and setting "client max protocol = NT1" is no longer necessary as of this bug report: https://bugs.launchpad.net/ubuntu/+sour ... mments=all
EDIT2 However, that fix created another issue if you try to browse to then connect to any server that has disabled SMBv1 like WIn10: https://bugs.launchpad.net/gvfs/+bug/1828107Samba changed the maximum client smb dialect that it can use from SMB1 to SMB3 so that it could connect to servers that have disabled SMB1 like Win10. This inadvertently disables netbios host discovery so if you go to Network > Windows Network you will see something likeFolder is Empty
in Ubuntu and just a blank screen in Cinnamon, Xubuntu, etc,..
You can restore it's discovery ability by editing /etc/samba/smb.conf and right under theworkgroup = WORKGROUP
line add this one:And then reboot. Yes, reboot.Code: Select all
client max protocol = NT1
You can still access it but you have to do so explicitly by name in your file manager ( smb://windows-host-name ), mDNS name ( smb://windows-host-name.local ), or ip address ( smb://192.168.0.100 ), or by using Connect to Server.
If you have a problem with that please see this: Samba Browsing Problems Checklist.
** If the other machine runs Win10 you can also use this method: Win10, Linux, mDNS, and Samba File Sharing
** This change to smb3 does not impact any machines that have registered mDNS for their samba / smb shares. So if the other machine runs Ubuntu 17.10 or newer, another Mint 19 machine, or macOS you will automatically see those machines under Network - but not under Windows Network since it's not using a Windows discovery protocol.
** If the other Linux machine is using an earlier Mint or Ubuntu I would suggest adding to those machines an avahi/samba service announcement:
[1] Create an avahi samba service file at
/etc/avahi/services/samba.service
[2] Then copy and past the following into it:
Code: Select all
<?xml version="1.0" standalone='no'?>
<!DOCTYPE service-group SYSTEM "avahi-service.dtd">
<service-group>
<name replace-wildcards="yes">%h SMB</name> ## Display Name
<service>
<type>_smb._tcp</type>
<port>445</port>
</service>
</service-group>
Code: Select all
sudo service avahi-daemon restart
The Linux kernel starting with 4.13 changed the default smb dialect that CIFS uses to SMB3 from SMB1. After 4.13.5 it's set to negotiate the version used with the server between 2.1 to 3.02 ( 3.11 in linux kernel 4.17 ). All modern SMB servers ( Win10, macOS, and Linux ) will accept SMB3 so this should not be an issue.
** What can be an issue is if you are running something with a very old version of samba like most NAS devices and there you would have to add an option to your cifs mount statement forcing it back to SMB1:
Code: Select all
vers=1.0
First: Remember Mint doesn't install the samba server package by default any longer so install it now:
Code: Select all
sudo apt install samba
Stating with Ubuntu 17.10 Samba has been configured correctly for mDNS. As soon as you install Samba your machine will become visible to all the other Linux and macOS machines by default. If you created shares on Mint19 those shares will also be visible. There is no need to make any other changes
[C2] Are the clients to this machine running Windows?
A Windows machine will have the same success or failure at discovering your machine that it did in earlier Mint versions. If you have problems see: Samba Browsing Problems Checklist.
If it is running Win10 it can always use \\mint-host-name.local or \\mint-ip-address.
** Special note if the clients to this server are running WinXP and possibly Win7. You are going to have to revert to a previous authentication protocol. You do that by adding these 2 lines - under the workgroup = WORKGROUP line:
Code: Select all
lanman auth = yes
ntlm auth = yes