summaryrefslogtreecommitdiff
path: root/samba/smb-shares.m4
blob: 2c1469f146c643098efb8b2f08ff680012e5a113 (plain)
  1. define(_veto_mac,/.AppleDouble/.AppleDesktop/Network Trash Folder/DesktopFolderDB/resource.frk/Icon^M/TheVolumeSettingsFolder/)dnl
  2. dnl
  3. dnl Common share options
  4. dnl --------------------
  5. dnl
  6. dnl $1 Share name
  7. dnl $2 Description
  8. dnl $3 Path
  9. dnl
  10. define(_share_logon,[$1]
  11. comment = $2
  12. path = $3
  13. )dnl
  14. define(_share_profiles,[$1]
  15. comment = $2
  16. path = $3
  17. force user = %u
  18. writable = yes
  19. browsable = yes
  20. root preexec = '/bin/mkdir $3/%U \
  21. /bin/chown %U $3/%U \
  22. /bin/chmod 700 $3/%U'
  23. )dnl
  24. define(_share_reference,[$1]
  25. comment = $2
  26. path = $3
  27. guest ok = yes
  28. )dnl
  29. dnl
  30. define(_share_home,[$1]
  31. comment = $2
  32. path = $3
  33. writeable = yes
  34. root preexec = '/bin/mkdir $3 \
  35. /bin/chown %S $3 \
  36. /bin/chmod 700 $3'
  37. )dnl
  38. define(_share_home_mac,[home_mac]
  39. comment = $1
  40. path = $2
  41. )dnl
  42. define(_share_home_web,[$1]
  43. comment = $2
  44. path = $3
  45. writeable = yes
  46. create mask = 0644
  47. directory mask = 0755
  48. )dnl
  49. dnl
  50. define(_share_pc,[$1]
  51. comment = $2
  52. path = $3
  53. browsable = yes
  54. writeable = yes
  55. create mask = 0660
  56. directory mask = 0770
  57. valid users = @$4
  58. force group = +$4
  59. )dnl
  60. define(_share_mac,[$1]
  61. comment = $2
  62. path = $3
  63. browsable = yes
  64. valid users = @$4
  65. veto files = _veto_mac
  66. )dnl
  67. define(_share_common,[$1]
  68. comment = $2
  69. path = $3
  70. browsable = yes
  71. writeable = yes
  72. create mask = 0660
  73. directory mask = 0770
  74. valid users = @$4
  75. force group = +$4
  76. delete veto files = Yes
  77. veto files = _veto_mac
  78. )dnl
  79. define(_share_printer,[$1]
  80. comment = $2
  81. path = $3
  82. printable = yes
  83. printer name = $4
  84. )dnl