daily pastebin goal
5%
SHARE
TWEET

Untitled

a guest Feb 4th, 2016 77 Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
  1. #
  2. # Sample configuration file for the Samba suite for Debian GNU/Linux.
  3. #
  4. #
  5. # This is the main Samba configuration file. You should read the
  6. # smb.conf(5) manual page in order to understand the options listed
  7. # here. Samba has a huge number of configurable options most of which
  8. # are not shown in this example
  9. #
  10. # Some options that are often worth tuning have been included as
  11. # commented-out examples in this file.
  12. #  - When such options are commented with ";", the proposed setting
  13. #    differs from the default Samba behaviour
  14. #  - When commented with "#", the proposed setting is the default
  15. #    behaviour of Samba but the option is considered important
  16. #    enough to be mentioned here
  17. #
  18. # NOTE: Whenever you modify this file you should run the command
  19. # "testparm" to check that you have not made any basic syntactic
  20. # errors.
  21. # A well-established practice is to name the original file
  22. # "smb.conf.master" and create the "real" config file with
  23. # testparm -s smb.conf.master >smb.conf
  24. # This minimizes the size of the really used smb.conf file
  25. # which, according to the Samba Team, impacts performance
  26. # However, use this with caution if your smb.conf file contains nested
  27. # "include" statements. See Debian bug #483187 for a case
  28. # where using a master file is not a good idea.
  29. #
  30.  
  31. #======================= Global Settings =======================
  32.  
  33. [global]
  34.     # Groupe de travail
  35.     workgroup = WORKGROUP
  36.  
  37.     # Nom du serveur
  38.     netbios name = lisa.illux.org
  39.  
  40.     # Description du serveur
  41.     server string = %h
  42.  
  43.     # This will prevent nmbd to search for NetBIOS names through DNS.
  44.     dns proxy = no
  45.  
  46. #### Debugging/Accounting ####
  47.  
  48.     # Fichier de log
  49.     log file = /var/log/samba/log.%m
  50.  
  51.     # Taille max des fichiers de log (en Kb)
  52.     max log size = 1000
  53.  
  54.     # Minimiser les logs envoyes a syslog
  55.     syslog = 0
  56.  
  57.     # Script a executer quand samba crash
  58.     panic action = /usr/share/samba/panic-action %d
  59.  
  60.  
  61. ####### Authentication #######
  62.  
  63.     # Type de securite (user = necessite un compte unix pour se loguer)
  64.     security = user
  65.  
  66.     # Crypte les mots de passe
  67.     encrypt passwords = true
  68.  
  69.     # Type de base de donnee utilisateur a utiliser
  70.     passdb backend = tdbsam
  71.     obey pam restrictions = yes
  72.  
  73.     # Tente de synchroniser les mots de passe systeme et samba
  74.     unix password sync = yes
  75.  
  76.     # Commande a executer pour la synchronisation des mots de passes
  77.     passwd program = /usr/bin/passwd %u
  78.     passwd chat = *Enter\snew\s*\spassword:* %n\n *Retype\snew\s*\spassword:* %n\n *password\supdated\ssuccessfully* .
  79.  
  80.     # Utilisation de PAM pour le changement des mots de passe via un client SMB
  81.     pam password change = yes
  82.  
  83.     # Mappage des authentification echoues
  84.     map to guest = bad user
  85.  
  86.     # Autorise les connexions non identifies
  87.     guest ok = yes
  88.  
  89.     guest account = kevin
  90.  
  91. #======================= Share Definitions =======================
  92.  
  93. [Videos]
  94.     path        = /mnt/hd2/videos
  95.     guest ok    = yes
  96.     public      = yes
  97.     write users = kevin
  98.     writeable   = yes
  99.  
  100. [Musiques]
  101.     path        = /mnt/hd1/musiques
  102.     guest ok    = yes
  103.     public      = yes
  104.     write users = kevin
  105.     writeable   = yes
  106.  
  107. [kevin]
  108.     path        = /home/users/kevin
  109.     guest ok    = no
  110.     public      = no
  111.     valid users = kevin
  112.     write users = kevin
  113.     writeable   = yes
RAW Paste Data
We use cookies for various purposes including analytics. By continuing to use Pastebin, you agree to our use of cookies as described in the Cookies Policy. OK, I Understand
 
Top