Samba lets Linux systems share files and printers with Windows machines using the SMB protocol. This guide sets up a basic shared folder accessible from Windows.

Install Samba

sudo apt install samba

Create a Shared Directory

sudo mkdir /srv/samba/shared
sudo chmod 777 /srv/samba/shared

Configure Samba

Add to /etc/samba/smb.conf:

[shared]
   path = /srv/samba/shared
   browseable = yes
   writable = yes
   guest ok = yes

Restart Samba

sudo systemctl restart smbd