From b26ddb3d9a5178f87d96dade3f3511486731273e Mon Sep 17 00:00:00 2001 From: Jonas Smedegaard Date: Sun, 7 Jul 2002 16:04:40 +0000 Subject: samba: m4 script: Rewrite option 'private'. fileshares now default to r/o private (clarify in documentation). --- samba/smb-shares.conf.m4 | 38 ++++++++++++++++++++++++-------------- 1 file changed, 24 insertions(+), 14 deletions(-) (limited to 'samba/smb-shares.conf.m4') diff --git a/samba/smb-shares.conf.m4 b/samba/smb-shares.conf.m4 index a8bc8ae..f4375ca 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.9 2002-07-07 14:25:53 jonas Exp $ +$Id: smb-shares.conf.m4,v 1.10 2002-07-07 16:04:40 jonas Exp $ m4 share definitions for generating Samba server smb.conf include file @@ -22,16 +22,16 @@ where "userprofiles" sets "force user" and pre-creates user subdirectory mode 700 "reference" allows guests "homes" pre-creates directory mode 750 - _homefiles shares have browseing disabled : Mount point description (iso8859-1 is (fully?) supported) : Full path to mount point directory : user name of owner of mount point directory : group name of owner of mount point directory : Numeric access modes of mount point directory - ro|rw : Primary group with access to mountpoint. Public readonly access if omitted (except mount points mentioned above) + 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. : Secondary group with readonly access - private: Do not announce mount point - Samba: Disable browseing Example: @@ -46,6 +46,7 @@ Example: TODO: Support for netatalk is not yet implemented. + Get rid of : is now 10nth parameter which is only available in GNU m4. ')dnl changequote(<, >)dnl @@ -106,17 +107,29 @@ ifdef($8, ifelse($8,ro, )dnl +>, + $8,rop, +)dnl +define(<_private>)dnl >, $8,rw, - ifdef($9, - ifelse($9,, - _warn(), )dnl -define(<_group_write>)dnl ->)), - _warn()dnl +>, + $8,rwp, +)dnl +define(<_private>)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>, @@ -140,9 +153,6 @@ ifelse($9,,, >ifdef(<_group_write>, < force group = +$9 >))dnl -ifelse($10,,, -define(<_private>)dnl -)dnl ifdef(<_private>, < browseable = no >)dnl -- cgit v1.2.3