install samba:
apt update
apt inatll samba -y
add a user to the samba group by creating a password for the user
sudo smbpasswd -a USER
other commands regarding user creation and password creation for samba are in the linked paged above -- linux-commands
[sharename]
comment = optional comment
browseable = yes
path = /path/to/dir
read only = no
guest ok = no
valid users = user
systemctl restart smbdthis is a basic configuration and the configuration can vary from setup to setup
445 should be the only port that needs to be open, but in some cases communication may need to use NetBios in which case ports 137-139 will need to be open.