Setup a non-secured shared folder with Samba
This script is to setup a quick and dirty shared folder on Linux without any security restrictions. This is ideal for local Linux installations such as a Raspberry Pi, or a Virtual Machine run on a (secured) host.
If you're a bit more serious about security, this script will not help you.
How to use this script:
- Install Samba: sudo apt-get install samba
- Create a user: sudo adduser yourname
- Go to samba folder: cd /etc/samba
- Enter: sudo vi easysamba.sh
- Press "i" to go to insert mode
- Copy the text from the easysamba.sh script here on Github and paste the text into Putty or terminal emulation
- Hit Escape and enter: ":x" (without double quotes)
- Enter: chmod u+rwx easysamba.sh
- Enter: ./easysamba.sh yourname
The script will configure /home/yourname/share as your shared folder.
If you drop files in this share, or create directories, then these items will receive file permissions, which will never obstruct you.