This is a quick and dirty tutorial how to setup a public share on Samba under Raspbian with write privileges for everyone.
1. Install packages below:
apt-get install samba
apt-get install samba-common
apt-get install samba-common-bin
2. Add the “pi” user to Samba using the command below:
smbpasswd -an pi
3. Modify /etc/samba/smb.conf to create the share.
comment = Downloads
path = /home/pi/storage/Downloads
browseable = yes
writeable = yes
guest ok = yes
guest only = yes
guest account = pi
force user = pi
force group = pi
The “path” parameter is used to specify the location of the share. Make sure /home/pi/storage/Downloads exists and it’s owned by the pi user.
4. When you are done just restart Samba.
5. Take a beer and start testing