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