Advertisement
Akee

smb.conf

Jul 20th, 2011
207
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 2.02 KB | None | 0 0
  1. [global]
  2.  
  3. # Parametres divers
  4. server string = Serveur samba %v
  5. netbios name = myserver
  6. workgroup = WORK
  7. log file = /var/log/samba/%U.%m.log
  8. log level = 2
  9.  
  10. # Authentification
  11. realm = WORK-NETWORK.COM
  12. security = ADS
  13. password server = pwdsrv
  14. encrypt passwords = yes
  15.  
  16. bind interfaces only = yes
  17. hosts allow = a.b.c
  18. hosts deny = ALL
  19. interfaces = lo eth0
  20.  
  21.  
  22. # Winbind et Idmap = trucs pour nss
  23. winbind use default domain = Yes
  24. winbind enum users = yes
  25. winbind enum groups = yes
  26. winbind nss info = rfc2307
  27. winbind nested groups = Yes
  28. winbind refresh tickets = yes
  29. winbind offline logon = false
  30.  
  31. ; winbind uid = 100000-200000
  32. ; winbind gid = 100000-200000
  33.  
  34.  
  35. idmap backend = tdb
  36. idmap uid = 2000000 - 2999999
  37. idmap gid = 2000000 - 2999999
  38. idmap config WORK : backend = ad
  39. idmap config WORK : schema_mode = rfc2307
  40. idmap config WORK : range = 500 - 1999999
  41. idmap cache time = 120
  42. idmap negative cache time = 20
  43. idmap cache time = 120
  44. idmap negative cache time = 20
  45.  
  46. ; idmap config WORK : readonly = yes
  47.  
  48.  
  49.  
  50. # Comportement PDC, WINS etc
  51. domain master = no
  52. dns proxy = no
  53. preferred master = no
  54. local master = no
  55.  
  56.  
  57. # Parametres avances
  58. socket options = TCP_NODELAY IPTOS_LOWDELAY SO_RCVBUF=65536 SO_SNDBUF=65536
  59. load printers = no
  60. printable = no
  61.  
  62. # Partages affiches dans lexplorateur
  63. [homes]
  64. comment = Home Directories
  65. valid users = %S
  66. read only = no
  67. create mask = 0600
  68. directory mask = 0700
  69. browseable = no
  70.  
  71. [Foo]
  72. comment = foo
  73. path=/srv/smb/Foo
  74. ; valid users = %S
  75. writeable = yes
  76. read only = no
  77. create mask = 0660
  78. directory mask = 0770
  79. browseable = no
  80. guest ok = no
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement