Skip to main content

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. 
mkdir /home/the/share/file/location
Go to the config file:

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

sudo vim /etc/samba/smb.conf
Inside the config file, add the following:
[sambashare_file_name]
	comment = Samba on Ubuntu
    path = /home/the/share/file/location
    read only = no
    browsable = yes    
Restart Samba:
sudo service smbd restart

or

sudo systemctl restart smbd
You prob have a firewall so, fix those settings now. 

For UFW:

sudo ufw allow samaba