Skip to content

Instantly share code, notes, and snippets.

@iamricard
Created May 11, 2013 19:33
Show Gist options
  • Save iamricard/5561112 to your computer and use it in GitHub Desktop.
Save iamricard/5561112 to your computer and use it in GitHub Desktop.
$ sudo apt-get install samba
$ sudo vi /etc/samba/smb.conf
# look for workgroup = WORKGROUP and change WORKGROUP for the workgroup name you set up on Windows
# look for the line #security = user and uncomment it
# save and exit
$ sudo echo -e "[sharedfolder]\n\tpath = /path/to/share/folder\n\tbrowsable = yes\n\tguest ok = no\n\tread only = yes\n\tcreate mask = 0755" >> /etc/samba/smb.conf
$ sudo smbpasswd -a `whoami`
$ sudo restart smbd && sudo restart nmbd
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment