


Then change to and path = /home/Drop to the path of your new share's directory.ħ. If you want to add additional Samba shares, copy paste the entire definition and add it to the bottom of the configuration file. Server string = YOUR_SERVER_HOSTNAME_HEREĦ. Replace YOUR_SERVER_HOSTNAME_HERE with the hostname of your server. Replace YOUR_USERNAME_HERE with the same user name you used in the previous step. Begin editing a new Samba configuration file. sudo chown YOUR_USERNAME_HERE /home/Dropĥ. Replace YOUR_USERNAME_HERE with your user name. We don't want outsiders accessing the Samba share as root, so instead we'll make this directory accessible by the current shell user (assuming you are not logged in as root). As my created directory is outside my user directory, it had to be created by the root user ( sudo does that for us). I will be using the directory /home/Drop sudo mkdir /home/DropĤ. Delete the default Samba configuration file.
#Ubuntu samba tutorial install
This can be done with: sudo apt-get install sambaĢ. Install Samba if it isn't installed already.
#Ubuntu samba tutorial how to
See the end of this guide for details on how to access it. Your server should restart and you should have a Samba share named Drop ready to be accessed. To do this automatically, log into a shell on your server, then execute the following lines: wget -O automated-insecure-samba-share.shĬhmod +x automated-insecure-samba-share.sh If you want to see the source of the automated version, it can be found here on my GitHub.
#Ubuntu samba tutorial manual
Otherwise follow the manual instructions.

If you don't care where your shared folder is located or what it is named and just want an insecure Samba share, this is the method for you. It will create a Samba share called Drop at /home/Drop. I wrote a script that will do this for you automatically.
