# Samba Share Setup

Make sure you have a directory set up that you are going to be sharing. If it is going to be a new one, create that directory where you need it, on the local machine that the data will live. /home/the/share/file/location or something like that.

If it already exists, just keep that in mind for when its needed in the config file.

##### Now, make that directory, unless you already have one in mind. 

```bash
mkdir /home/the/share/file/location
```

##### Go to the config file:

I'm using "vim". Use whatever you want.

```bash
sudo vim /etc/samba/smb.conf
```

##### Inside the config file, add the following:

```bash
[sambashare_file_name]
	comment = Samba on Ubuntu
    path = /home/the/share/file/location
    read only = no
    browsable = yes    
```

##### Restart Samba:

```bash
sudo service smbd restart
```

or

```bash
sudo systemctl restart smbd
```

##### You prob have a firewall so, fix those settings now. 

For UFW:

```bash
sudo ufw allow samaba
```