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
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
[data_server] 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:
$ 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.