daily pastebin goal
74%
SHARE
TWEET

smb.conf

a guest Jun 25th, 2012 27 Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
  1. [global]
  2.  
  3. ;       netbios name = server
  4.         workgroup = workgroup
  5.         server string = Samba
  6.  
  7.         interfaces = 127.0.0.0/8 eth0
  8.         bind interfaces only = yes
  9.         log file = /var/log/samba/log.%m
  10.         max log size = 1000
  11.         syslog = 0
  12.         panic action = /usr/share/samba/panic-action %d
  13.         security = user
  14.         max connections = 6
  15.         load printers = no
  16.         local master = no
  17. ;       encrypt passwords = yes
  18. ;       passdb backend = tdbsam
  19.         obey pam restrictions = yes
  20.         unix password sync = yes
  21.  
  22. # For Unix password sync to work on a Debian GNU/Linux system, the following
  23. # parameters must be set (thanks to Ian Kahan <<kahan@informatik.tu-muenchen.de> for
  24. # sending the correct chat script for the passwd program in Debian Sarge).
  25.         passwd program = /usr/bin/passwd %u
  26.         passwd chat = *Enter\snew\s*\spassword:* %n\n *Retype\snew\s*\spassword:* %n\n *password\supdated\ssuccessfully* .
  27.  
  28.  
  29.         pam password change = yes
  30.  
  31.         map to guest = bad user
  32.  
  33. ;       usershare allow guests = no
  34.         username map = /etc/samba/smbusers
  35. ;       guest account = nobody
  36.        
  37.  
  38. #======================= Share Definitions =======================
  39. # '@' means a user group as in @backup below
  40.  
  41. [sharename]
  42.         comment = large array
  43.         path = /server/path
  44.         hosts allow = 192.168.100.0/255.255.255.0
  45.         browseable = yes
  46.         valid users = @backup john
  47.         writeable = yes
RAW Paste Data
Pastebin PRO WINTER Special!
Get 40% OFF Pastebin PRO accounts!
Top