From Cream Baboon, 3 Months ago, written in Plain Text.
This paste will explode in 1 Second.
Embed
  1. [global]
  2. netbios name = server
  3. #socket options = TCP_NODELAY IPTOS_LOWDELAY SO_RCVBUF=65536 SO_SNDBUF=65536
  4. map untrusted to domain = Yes
  5. security = user
  6. encrypt passwords = true
  7. guest account = workstation
  8. map to guest = Bad Password
  9.  
  10. log level = 3
  11.  
  12. name resolve order = bcast lmhosts host wins
  13.  
  14. domain master = no
  15. local master = yes
  16. preferred master = yes
  17.  
  18. #server min protocol = SMB2
  19. #server max protocol = SMB3
  20. ntlm auth = yes
  21.  
  22. workgroup = WORKGROUP
  23.  
  24. dns proxy = no
  25.  
  26. interfaces = 192.168.1.5
  27. bind interfaces only = yes
  28.  
  29. log file = /var/log/samba/log.%m
  30.  
  31. max log size = 1000
  32.  
  33. syslog = 0
  34.  
  35. panic action = /usr/share/samba/panic-action %d
  36.  
  37. server role = standalone server
  38.  
  39. passdb backend = tdbsam
  40.  
  41. obey pam restrictions = yes
  42.  
  43. unix password sync = yes
  44.  
  45. passwd program = /usr/bin/passwd %u
  46. passwd chat = *Enter\snew\s*\spassword:* %n\n *Retype\snew\s*\spassword:* %n\n *password\supdated\ssuccessfully* .
  47.  
  48. pam password change = yes
  49.  
  50. include = /etc/samba/smb.conf.client-%I
  51.  
  52. [printers]
  53.    comment = All Printers
  54.    browseable = no
  55.    path = /var/spool/samba
  56.    printable = yes
  57.    guest ok = no
  58.    read only = yes
  59.    create mask = 0700
  60.    
  61. [data]
  62.         public = yes
  63.         path = /data/shares/data
  64.         guest ok = yes
  65.         writable = yes
  66.         hide unreadable = yes
  67.         create mask = 0664
  68.         directory mask = 0775
  69.         force directory mode = 2775
  70.         force create mode = 0664
  71.         read only = no
  72.         vfs objects = acl_xattr
  73.         map acl inherit = yes
  74.         store dos attributes = yes
  75.         vfs objects = full_audit
  76.         full_audit:prefix = %u|%I|%m|%S
  77.         full_audit:success = mkdir rename rmdir pwrite write unlink open close
  78.         full_audit:failure = mkdir rename rmdir pwrite write unlink open close
  79.         full_audit:facility = local7
  80.         full_audit:priority = warning
  81.  
  82. [applications]
  83.         public = yes
  84.         path = /data/shares/applications
  85.         guest ok = yes
  86.         browsable = yes
  87.         writable = no
  88.         hide unreadable = yes
  89.         create mask = 0664
  90.         directory mask = 0755
  91.         vfs objects = acl_xattr
  92.         map acl inherit = yes
  93.         store dos attributes = yes