Skip to content

Instantly share code, notes, and snippets.

Embed
What would you like to do?
Setup Samba on devbox
sudo apt-get -y install samba
# Set a password for your user in Samba (use "vagrant" as password)
sudo smbpasswd -a vagrant
# Add this to /etc/samba/smb.conf
[www]
path = /var/www
available = yes
valid users = vagrant
follow symlinks = no
read only = no
browseable = yes
public = yes
writable = yes
hide dot files = no
veto files = /.git/
map archive = yes
map system = yes
map hidden = yes
# Restart samba
sudo service smbd restart
Mount folder in Windows (directly accessing it will show the folders in explorer, but not in PHPStorm)
net use A: \\ip\www /persistent:no /user:vagrant
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment