From 1a6b429072e8ea5f5acd5adb55af6685d1d9ce57 Mon Sep 17 00:00:00 2001 From: Jonas Smedegaard Date: Sun, 7 Jul 2002 17:15:52 +0000 Subject: samba: m4 script: Group write access only when access is 'rw', not 'rwp'. --- samba/smb-shares.conf.m4 | 14 ++++++-------- 1 file changed, 6 insertions(+), 8 deletions(-) (limited to 'samba') 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 -$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. - : Primary group with access to mountpoint. If mount point is r/w then primary group has r/w access as well. + : Primary group with access to mountpoint. If mount point has access "rw" then primary group has read/write access as well. : Secondary group with readonly access Example: @@ -117,6 +117,10 @@ define(<_private>)dnl $8,rw, )dnl + ifdef($9, + ifelse($9,,, +define(<_group_write>)dnl +))dnl >, $8,rwp, )dnl >, _warn()dnl ))dnl -ifdef($9, - ifelse($9,, - _warn(), - ifdef(<_user_write>, -define(<_group_write>)dnl -)))dnl ifdef(<_user_write>, < writeable = yes >ifdef(<_group_write>, -- cgit v1.2.3