Public share on Samba and Raspbian with write privileges

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.

[Downloads]
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.

/etc/init.d/samba restart

5. Take a beer and start testing

Leave a Reply

Your email address will not be published. Required fields are marked *