summaryrefslogtreecommitdiff
path: root/samba
diff options
context:
space:
mode:
authorJonas Smedegaard <dr@jones.dk>2002-07-07 17:15:52 +0000
committerJonas Smedegaard <dr@jones.dk>2002-07-07 17:15:52 +0000
commit1a6b429072e8ea5f5acd5adb55af6685d1d9ce57 (patch)
treef16ed93a1e8d35bf43bad17e3902e543ff365e5e /samba
parent0d08b9363760cb78ea00102f8a925e2e3fcf71f9 (diff)
samba: m4 script: Group write access only when access is 'rw', not 'rwp'.
Diffstat (limited to 'samba')
-rw-r--r--samba/smb-shares.conf.m414
1 files changed, 6 insertions, 8 deletions
diff --git a/samba/smb-shares.conf.m4 b/samba/smb-shares.conf.m4
index dc51dde..c989d68 100644
--- a/samba/smb-shares.conf.m4
+++ b/samba/smb-shares.conf.m4
@@ -2,7 +2,7 @@ ifelse(`
/etc/samba/smb-shares.m4
Copyright 2002 Jonas Smedegaard <dr@jones.dk>
-$Id: smb-shares.conf.m4,v 1.12 2002-07-07 17:07:39 jonas Exp $
+$Id: smb-shares.conf.m4,v 1.13 2002-07-07 17:15:52 jonas Exp $
m4 share definitions for generating Samba server smb.conf include file
@@ -30,7 +30,7 @@ where
ro|rw|rop|rwp: Read-only or read/write access to mount point, and wether it should be private (not publically announced).
Private read-only access if undefined.
_homefiles are always private.
- <group>: Primary group with access to mountpoint. If mount point is r/w then primary group has r/w access as well.
+ <group>: Primary group with access to mountpoint. If mount point has access "rw" then primary group has read/write access as well.
<othergroup>: Secondary group with readonly access
Example:
@@ -117,6 +117,10 @@ define(<_private>)dnl
$8,rw,
<dnl
define(<_user_write>)dnl
+ ifdef($9,
+ ifelse($9,,,
+define(<_group_write>)dnl
+))dnl
>,
$8,rwp,
<dnl
@@ -125,12 +129,6 @@ define(<_private>)dnl
>,
_warn(<share access is wrong. Must be either "ro", "rop", "rw" or "rwp">)dnl
))dnl
-ifdef($9,
- ifelse($9,,
- _warn(<share access is "rw" or "rwp" but no group is specified>),
- ifdef(<_user_write>,
-define(<_group_write>)dnl
-)))dnl
ifdef(<_user_write>,
< writeable = yes
>ifdef(<_group_write>,