Create A Public Samba Share

Create A Public Samba Share On Ubuntu 17.04 | 17.10

This brief tutorial shows students and new users how to create a public Samba shares on Ubuntu server so everyone can access without authenticating. This share will be fully accessible to all and everyone will be able create, modify and delete folders and files.

Then in our next post we’ll show you how to create restricted shares so only authenticated users can access.

For those who don’t know, Samba is a opensource implementation of Microsoft SMB/CIFS protocol. It provides fast and secure files and print services for clients using the SMB/CIFS protocol. Simply put, it provides files and printer sharing between clients and servers.

To get started with creating a public share that can be fully accessed by everyone, continue with the steps below:

Step 1: Install Samba

The first thing you’ll need to do is install Samba. To install it run the commands below.

sudo apt-get update
sudo apt-get install samba

The commands above install Samba and all other dependencies.

Step 2: Create the Share

First, create the folder you  want to share with the public. The folder can be anywhere but set its permission so that everyone can access it. For this this tutorial, our share will be /home/Public

Run the commands below to create the folder you wish to share.

sudo mkdir /home/Public

Step 3: ACCESS the Share

http://10.10.x.x/blog/?lang=blog-en.php <—–Seems fishy.. May be injectable.
1. So the above link is injectable with rfi. So we need to setup smb. Here are the steps..

– apt-get install samba
– cd to /etc/samba/
– open the smb.conf file in leafpad
– put this in the file right under the global settings line and save it. (SAVE A COPY OF THE OLD ONE SO YOU CAN PUT IT BACK WHEN YOU ARE DONE)

[global]
workgroup = WORKGROUP
server string = Samba Server %v
netbios name = indishell-lab
security = user
map to guest = bad user
name resolve order = bcast host
dns proxy = no
bind interfaces only = no
min protocol = SMB2

[dirk]
path = /var/www/html/pub
writable = yes
guest ok = yes
guest only = yes
read only = no
directory mode = 0555
force user = nobody

.

.

Auteur : Jacco Straathof