Last Updated:

Samba file sharing setup

masonbee System

Samba is the open source version of the protocol that Windows machines use to share files. It is useful because it is fairly well supported on Linux, Mac and Windows machines although Windows likes to change things to make it harder sometimes. The steps below will set up a simple share using the Public folder in

To install samba on KDE neon, open Konsole and type,

sudo apt install samba

This will install the server. The next step is to add yourself as a samba user. You have to be a user already to be a samba user so use your existing username or it won't work.

sudo smbpasswd -a <insert username>

It will then ask you to enter your password and then confirm it. You don't have to use your account password, in fact it is more secure to use a different one for networking as you tend to have to give it out so other can access it.

The next step is to backup the configuration file and then edit it. You can backup the file by typing,

sudo cp /etc/samba/smb.conf /etc/samba/smb.conf_backup

Then edit it using nano.

sudo nano /etc/samba/smb.conf

At the very bottom of the file I am going to at the share definitions for a folder called Public in my home directory. This will probably already exist but if it doesn't then create it. Change the <partstochange> to suit yourself.

[<share name>]path = /home/<username>/Public/available = yesvalid users = <username>read only = nobrowseable = yespublic = yeswritable = yes

So if my user name was squalidh then the share would look like,

[Squalidh Share]path = /home/squalidh/Public/available = yesvalid users = squalidhread only = nobrowseable = yespublic = yeswritable = yes

After finishing save the file and restart the samba server with,

sudo systemctl restart smbd

Then open up Dolphin, the file manager, and on the left should be a heading Remote with Network under it. Select that and then Shared Folders (SMB) and your Workgroup should show up. It should also be called Workgroup as that is the default. Entering that should show your computer name and then entering that should show your share name (Squalidh Share from above). You will be asked to enter your samba user password before being able to enter that directory.

That should be it. You should be able to create and destroy files in that directory and so should anyone on the network with your user name and password.