Created
June 15, 2014 15:32
-
-
Save fbrnc/147bc6eaf187a15f1f75 to your computer and use it in GitHub Desktop.
Setup Samba on devbox
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
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