Samba Client Configure
After you have already set up a Samba server, we will see in this post how to install and connect a Windows or a Linux machine to that Samba server. There are a lot of ways to do it, and we will use both the terminal and the GUI way for Linux.
Samba Client on Linux Using terminal and /etc/fstab For a permanent mount of the network folders after a reboot, we can edit the fstab file in order to mount the drives after a start up.
Samba Configure
Install Samba Install samba:
sudo apt update sudo apt install samba Check if the installation successful:
whereis samba The expected output should be something like this:
samba: /usr/sbin/samba /usr/lib/samba /etc/samba /usr/share/samba /usr/share/man/man7/samba.7.gz /usr/share/man/man8/samba.8.gz Configure Firewall If you have a firewall running on your Ubuntu system you’ll need to allow incoming UDP connections on ports 137 and 138 and TCP connections on ports 139 and 445. Assuming you are using UFW to manage your firewall, you can open the ports by enabling the samba profile: