Edit samba configuration:

nano /etc/samba/smb.conf    

Share example:

[share_name]
guest ok = yes
path =
local_shared_dir
available = yes
read only = no
browseable = yes
public = yes
writable = yes
create mask = 0777

Restart samba:

systemctl restart smbd    

(stop, start)