blob: 5dc36bc7c3b934d2f774c001887d0c038d23ac32 (
plain)
- dnl
- dnl /etc/samba/smb-shares.m4
- dnl Copyright 2002 Jonas Smedegaard <dr@jones.dk>
- dnl
- dnl $Id: smb-shares.m4,v 1.4 2002-03-20 20:06:46 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
|