uniq_

samba server share on debian 7

# install samba
sudo apt-get install samba

# add fileshare configuration to
# samba config file
# manipulate this to fit your needs
cat << EOF | sudo bash -c 'cat >> /etc/samba/smb.conf'
[sharename]
   comment = Some useful files
   read only = no
   locking = no
   path = /media/sharename
   guest ok = no
EOF

# optional, create new user for samba
#sudo adduser sambauser

# enable unix user for samba authentication
sudo smbpasswd -a sambauser

# restart samba
sudo service samba restart

resources: https://wiki.debian.org/SambaServerSimple

written by uniq on 2015-02-07