How to Set Up a Samba File Server
Samba exposes folders over SMB/CIFS. Great on LAN or VPN — do not leave it open to the internet without extra layers.
Steps
Install Samba.
sudo apt updatesudo apt install -y sambaCreate the shared directory plus a system user and smbpasswd.
Tips
- Prefer a VPN (WireGuard/OpenVPN) over public SMB.