sudo apt-get update
sudo apt-get install samba samba-common
sudo mkdir /home/vagrant/share
sudo chmod 777 /home/vagrant/share
sudo smbpasswd -a vagrant // vagrant This user must exist for the job, set a password here
sudo vim /etc/samba/smb.conf
Added at the end
[share] comment = Shared Folder require password path = /home/vagrant/code public = yes writable = yes valid users = vagrant create mask = 0777 directory mask = 0777 force user = nobody force group = nogroup available = yes browseable = yes
path path
valid users Username
sudo service smbd restart
At this point can be connected in windows