From 5c6a77b9024b91baa3476219e9f834e86d338587 Mon Sep 17 00:00:00 2001 From: Jonas Smedegaard Date: Sun, 7 Jul 2002 14:25:53 +0000 Subject: samba: m4 script: New option 'private' - used to disable browseing (added to all _homefiles lines). --- samba/smb-shares.conf.m4 | 25 ++++++++++++++++++------- 1 file changed, 18 insertions(+), 7 deletions(-) (limited to 'samba') diff --git a/samba/smb-shares.conf.m4 b/samba/smb-shares.conf.m4 index dddbed5..a8bc8ae 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.8 2002-07-07 13:56:04 jonas Exp $ +$Id: smb-shares.conf.m4,v 1.9 2002-07-07 14:25:53 jonas Exp $ m4 share definitions for generating Samba server smb.conf include file @@ -12,7 +12,7 @@ Depend on file /etc/local-COMMON/file-.m4 containing lines of the following syntax: _dir(,,,)dnl _homefiles(,,,[,ro])dnl - _files(,,,,,,[,ro[,]|,rw,[,]])dnl + _files(,,,,,,[[,ro[,]|,rw,[,]][,private]])dnl where : Client operating systems (mac|win|any) : Mount point name @@ -21,7 +21,8 @@ where "netlogon" has browsing and share modes disabled "userprofiles" sets "force user" and pre-creates user subdirectory mode 700 "reference" allows guests - "homes" has browseing disabled and pre-creates directory mode 750 + "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 @@ -29,6 +30,8 @@ where : 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) : Secondary group with readonly access + private: Do not announce mount point + Samba: Disable browseing Example: @@ -67,13 +70,14 @@ undefine(<_group_read>)dnl undefine(<_world_read>)dnl undefine(<_user_write>)dnl undefine(<_group_write>)dnl +undefine(<_private>)dnl [$2] path = $4 ifelse($3,,, < comment = $3 >)ifelse($2,, -< browseable = no - share modes = no +< share modes = no +define(<_private>)dnl >, $2,, < force user = %u @@ -86,12 +90,13 @@ define(<_chmod>, <700>)dnl < guest ok = yes >, $2,, -< browseable = no +, <$4>)dnl define(<_chown>, <%S>)dnl define(<_chmod>, <750>)dnl define(<_user_write>)dnl define(<_group_read>)dnl +define(<_private>)dnl >, <>)dnl ifdef(<_mkdir>, @@ -135,6 +140,12 @@ ifelse($9,,, >ifdef(<_group_write>, < force group = +$9 >))dnl +ifelse($10,,, +define(<_private>)dnl +)dnl +ifdef(<_private>, +< browseable = no +>)dnl ifdef(<_veto>, < veto files = _veto_mac >)dnl @@ -142,7 +153,7 @@ ifdef(<_veto>, >)dnl define(<_homefiles>, )>)dnl +<_files($1,$2,$3,$4,,,,,,private)>)>)dnl define(<_printer>,