Samba is free open source software for Linux. by which you can easily transfer your files and folders and also secure ways you can provide printing and files server to your all the clients.
To install and configure samba on ubuntu just follow my steps.
1. Install Ubuntu Update
sudo apt update
2. Install SAMBA packages on Ubuntu Linux
sudo apt install samba
3. Create director to share using SAMBA
mkdir /home/username/sambashare
4. Configure and Edit smb.conf file
sudo nano /etc/samba/smb.conf
[sambashare]
comments = Samba on Ubuntu
path = /home/username/sambashare
read only = no
browsable = yes
5. Restart SAMBA services
sudo service smbd restart
6. Add firewall rules for SAMBA
sudo ufw allow samba
7. Create user and password for SAMBA
sudo smbpasswd -a username
8. Disable Firewall Rules
sudo ufw disable
9. Enable Firewall Rules
sudo ufw enable
10. Install net-tools to check ip address
sudo apt install net-tools
11. Check IP address by using ifconfig command
ifconfig
12. Check status of SAMBA smbd service
sudo systemctl status smbd