blob: 0cf86e4aa2007cf7e02f9509f6fcfd7e2ff86d15 (
plain)
- dnl
- dnl /etc/samba/smb-shares.m4
- dnl Copyright 2002 Jonas Smedegaard <dr@jones.dk>
- dnl
- dnl $Id: smb-shares.m4,v 1.5 2002-04-02 16:03:04 jonas Exp $
- dnl
- dnl m4 share definitions for generating Samba server smb.conf
- dnl
- define(_veto_mac,/.AppleDouble/.AppleDesktop/Network Trash Folder/DesktopFolderDB/resource.frk/Icon^M/TheVolumeSettingsFolder/)dnl
- dnl
- dnl Common share options
- dnl --------------------
- dnl
- dnl $1 Share name
- dnl $2 Description
- dnl $3 Path
- dnl
- define(_share_logon,[$1]
- comment = $2
- path = $3
- )dnl
- define(_share_profiles,[$1]
- comment = $2
- path = $3
- force user = %u
- writable = yes
- browsable = yes
- root preexec = '/bin/mkdir $3/%U \
- /bin/chown %U $3/%U \
- /bin/chmod 700 $3/%U'
- )dnl
- define(_share_reference,[$1]
- comment = $2
- path = $3
- guest ok = yes
- )dnl
- dnl
- define(_share_home,[$1]
- comment = $2
- path = $3
- writeable = yes
- root preexec = '/bin/mkdir $3 \
- /bin/chown %S $3 \
- /bin/chmod 700 $3'
- )dnl
- define(_share_home_mac,[home_mac]
- comment = $1
- path = $2
- )dnl
- define(_share_home_web,[$1]
- comment = $2
- path = $3
- writeable = yes
- create mask = 0644
- directory mask = 0755
- )dnl
- dnl
- define(_share_pc,[$1]
- comment = $2
- path = $3
- browsable = yes
- writeable = yes
- create mask = 0660
- directory mask = 0770
- valid users = @$4
- force group = +$4
- )dnl
- define(_share_mac,[$1]
- comment = $2
- path = $3
- browsable = yes
- valid users = @$4
- veto files = _veto_mac
- )dnl
- define(_share_common,[$1]
- comment = $2
- path = $3
- browsable = yes
- writeable = yes
- create mask = 0660
- directory mask = 0770
- valid users = @$4
- force group = +$4
- delete veto files = Yes
- veto files = _veto_mac
- )dnl
- define(_share_printer,[$1]
- comment = $2
- path = $3
- printable = yes
- printer name = $4
- )dnl
- dnl include(smb_esyscmd(hostname -f).m4)dnl
- include(smb_thor.venture.local.conf.m4)dnl
|