Connect with us

Hi, what are you looking for?


How to Install Samba on Ubuntu 16.04

How to Install & Configure Samba on Ubuntu 16 / Linux Mint 18. Samba is a program for Linux based system that is used to bridge with the  various operating system platforms  like Windows, Linux, MAC OS, UNIX, AIX, etc. It is an application works on the basis of Service Message Block protocol. It works with many operating systems which uses SMB  client / server network protocol. It allows the server communicate with client machines on a single or multiple network.  this tutorial Explains about How to Install & Configure Samba on Ubuntu based distribution. You need to follow all the steps for assured samba setup.

Installing Samba

Step 1: Please update your server with commands from your shell
$ sudo apt-get update
Step 2: Install the Samba packages
$ apt-get install samba -y

Configuring On Samba Server

Step 1: Create a folder to be shared with the client computer.

As an example I will create a folder myfolder in the home folder.

$ sudo mkdir /home/myfolder
Step 2: Change folder permission to 777.
$ sudo chmod 777 /home/myfolder
Step 3: Configuring file smb.conf in /etc/samba/.
$ sudo nano /etc/samba/smb.conf

Then add the script below :

path = /home/myfolder/
browseable = yes
read only = no
guest ok = yes
writeable = yes
Step 4: Restart samba service.
$ sudo systemctl restart smb
$ sudo systemctl restart smbd

Configuring On Samba Client

On the client side, if we want to add a folder on the share, we need to do the following:

Advertisement. Scroll to continue reading.
Step-1: Create a folder to put the folder will be shared myclientfolder.
$ sudo mkdir /mnt/myclientfolder
Step 2: Then mounting another computer folder to your computer.
$ sudo mount -t cifs //ip-address-server-samba/myfolder /mnt/myclientfolder -o password=
Step 3: To disconnect the folder that had been mounted, please type the command:
$ sudo umount /mnt/myclientfolder


Congratulations now you have completed all the steps to Install & Configure Samba on Ubuntu based distributions. If you have issues with this you need to use the comment section below for more help and support.


You May Also Like


How to auto upgrade JioFi firmware for JioFi 2 / JioFi 3 / JioFi 4 / JioFi 5 / JioFi 6 and other JioFi...


Internet is the most important public network for connecting to the WEB. For internet connection requirement the ISP is required as well as it...


How to download and install the Mobile Intel 4 Series Express Chipset Graphics Drivers for Windows 10.  Windows 10 is the one of the...


How to Install and Configure PCSX2 on Windows 10. The Windows 10 is the most recommended operating system for the Games. In stream platform...