Installation -
sudo apt update
sudo apt install samba
Check Installation -
whereis samba
The following should be its output:
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
Create samba conf file backup
sudo cp /etc/samba/smb.conf /etc/samba/smb.conf.orig
Add Folder entry in /etc/samba/smb.conf which you want to share as below -
[Friends] # share folder name
path = /home/atul/Desktop/Friends # folder path
read only = no
browsable = yes
Start Samba Service
sudo systemctl restart smbd
sudo service smbd restart
Check if all working as configured
testparm
Now, Set password Samba User -
sudo smbpasswd -a <user_name> # user_name should be existing system user
Share the Folder link to respective users -
Windows User - \\ip-address\Friends
Ubuntu User - smb://ip-address/Friends
Facebook Page Facebook Group Twitter Feed Google+ Feed Telegram Group