Installsudo apt update
sudo apt install samba
(for Ubuntu 24 samba was already installed)
Setting up Sambamkdir /home/<username>/sambashare/
Edit config filesudo nano /etc/samba/smb.conf
add at bottom:
[sambashare] comment = Samba on Ubuntu
path = /home/username/sambashare
read only = no
browsable = yes
Restart Samba
sudo service smbd restart
Update the firewall rules to allow Samba traffic
sudo ufw allow samba
set up password for user account
sudo smbpasswd -a username
change workgroup
edit the config file
find workgroup under global