I use vagrant for daily development, now vagrant has this directory mounted when we setup vagrant at the first time. But sometimes I’d like to mount my own directory to my local machine.
This is the way I create samba share in my vagrant :
apt-get install samba samba-common
Create user for project
useradd -m user1 -d /srv/myproject
Open samba config file
vim /etc/samba/smb.conf
Put the new config below at the very bottom
[myproject] browseable = yes path = /srv/myproject guest ok = yes public = yes read only = no create mask = 0644 directory mask = 0755 force user = user1
Restart samba :
service samba restart
What’s next :
http://pulpn.com/mount-samba-share-with-command-line/