Install Samba On Debian 8 (Jessie)

(Last Updated On: 20 September 2018)

This tutorial explains the installation of a Samba fileserver on Debian 8 (Jessie) and how to configure it to share files over the SMB protocol as well as how to add users. Samba is configured as a standalone server, not as a domain controller. In the resulting setup, every user has his own home directory accessible via the SMB protocol and all users have a shared directory with read-/write access.


Installing Samba

Move the current smb.conf file to smb.conf.bak:

And then create a new file smb.conf file:

With the following content:

Adding Samba Shares

Adding and Managing Users


A Note about adding users on Samba version 4.x

Unlike Samba version 3.x and earlier, Samba version 4.x does not require a local Unix/Linux user for each Samba user that is created. The command is as follows for adding users into Samba Active Directory

Please see Samba AD DC howto for more info. Answer Extracted from Cyberciti SOURCE

In this example, I will add a user named tom. You can add as many users as you need, in the same way, just replace the username tom with the desired username in the commands.



Set a password for tom in the Linux system user database. If the user tom should not be able to log into the Linux system, skip this step.

Now add the user to the Samba user database:

make samba follow symlink outside the shared path

Now we restart Samba:








Please enter your comment!
Please enter your name here

This site uses Akismet to reduce spam. Learn how your comment data is processed.