Advertisement
Guest User

Samba Config

a guest
Dec 17th, 2016
145
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 2.75 KB | None | 0 0
  1. #======================= Global Settings =======================
  2.  
  3. [global]
  4. log file = /var/log/samba/log.%m
  5. passwd chat = *Enter\snew\s*\spassword:* %n\n *Retype\snew\s*\spassword:* %n$
  6. socket options = TCP_NODELAY IPTOS_LOWDELAY
  7. obey pam restrictions = yes
  8. map to guest = bad user
  9. encrypt passwords = true
  10. passwd program = /usr/bin/passwd %u
  11. passdb backend = tdbsam
  12. dns proxy = no
  13. server string = Company X Server %h
  14. unix password sync = yes
  15. workgroup = WORKGROUP
  16. syslog = 0
  17. panic action = /usr/share/samba/panic-action %d
  18. usershare allow guests = yes
  19. max log size = 1000
  20. pam password change = yes
  21. unix password sync = yes
  22.  
  23. [private]
  24. browseable = no
  25. writeable = yes
  26. path = /mnt/path/to/private
  27. write list = @private
  28. force group = private
  29. revalidate = yes
  30. comment = Private Internal share
  31. valid users = @private
  32. create mode = 0770
  33. directory mode = 0770
  34. vfs objects = full_audit recycle
  35. config-file = /etc/samba/recycle.conf
  36. recycle:repository = /mnt/path/to/private/.recycle/%u
  37. recycle:directory_mode = 0770
  38. recycle:keeptree = Yes
  39. recycle:versions = Yes
  40. recycle:touch_mtime = yes
  41. recycle:exclude = *.tmp, *.bak
  42. recycle:exclude_dir = .recycle
  43. full_audit:prefix = %u|%I
  44. full_audit:success = open mkdir rmdir write unlink rename
  45. full_audit:failure = mkdir rmdir write unlink rename
  46.  
  47. [public]
  48. writeable = yes
  49. path = /mnt/path/to/public
  50. write list = @public
  51. force group = public
  52. revalidate = yes
  53. force user = nobody
  54. comment = Public Share
  55. valid users = @public
  56. public = yes
  57. create mode = 0775
  58. directory mode = 0775
  59. vfs objects = full_audit recycle
  60. config-file = /etc/samba/recycle.conf
  61. recycle:repository = /mnt/path/to/public/.recycle/%u
  62. recycle:directory_mode = 0770
  63. recycle:keeptree = Yes
  64. recycle:versions = Yes
  65. recycle:touch_mtime = yes
  66. recycle:exclude = *.tmp, *.bak
  67. recycle:exclude_dir = .recycle
  68. full_audit:prefix = %u|%I
  69. full_audit:success = open mkdir rmdir write unlink rename
  70. full_audit:failure = mkdir rmdir write unlink rename
  71.  
  72.  
  73. ================
  74. Contents of recycle.conf
  75. ================
  76. ##Recycle Bin Configuration File##
  77. name = Recycle Bin
  78. mode = KEEP_DIRECTORIES|VERSIONS|TOUCH
  79. maxsize = 0
  80. exclude = *.tmp|*.temp|*.o|*.obj|~$*|*.~??|*.log|*.trace
  81. excludedir = /tmp|/temp|/cache
  82. noversions = *.doc|*.ppt|*.dat|*.ini
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement