Edition du fichier /etc/samba/smb.conf:

#======================= Global Settings =======================

[global]

   load printers = no
   printing = bsd 
   printcap name = /dev/null
   disable spoolss = yes 
   workgroup = WORKGROUP
   encrypt passwords = yes 
   dns proxy = no
   log file = /var/log/samba/log.%m
   max log size = 1000
   syslog = 3 
   panic action = /usr/share/samba/panic-action %d
   server role = standalone server
   passdb backend = tdbsam
   obey pam restrictions = yes 
   unix password sync = yes 
   passwd program = /usr/bin/passwd %u
   passwd chat = *Enter<br/>snew<br/>s*<br/>spassword:* %n<br/>n *Retype<br/>snew<br/>s*<br/>spassword:* %n<br/>n *password<br/>supdated<br/>ssuccessfully* .
   pam password change = yes 
   map to guest = bad user
   usershare allow guests = no
   interfaces = eth0 192.168.1.0/24 tun0 10.8.0.0/24

#======================= Share Definitions =======================
[Videos]
    path=/media/videos
    browsable=yes
    read only=yes
    write list = user, kodi
    hosts allow = 192.168.1.0/24,10.8.0.2
[partage]
    path=/media/partage
    browsable=yes
    read only=yes
    write list = user, kodi
    hosts allow = 192.168.1.0/24