Viitor_samba/opt/samba/scripts/addshare
kueller 3c9e222c07 V961 Tree Umbau
git-svn-id: svn://svn.compuextreme.de/Viitor/V961/Viitor_samba@4317 504e572c-2e33-0410-9681-be2bf7408885
2008-05-03 16:59:13 +00:00

30 lines
620 B
Bash

#!/bin/bash
#Samba Add On Script - dient zum Anlegen neuer Shares
#von Windows Clients aus
#(c) Rainmaker MultiMedia OHG
#
#$Author$
#$Date$
#$Revision$
#
#$Log$
#Revision 1.1 2002/01/26 02:37:06 kueller
#Neue Scripts - werden von der neuen smb.conf benötigt, und dienen zur
#Unterstützung der NT-Server Tools
#
#
configfile=$1
sharename=$2
pathname=$3
comment=$4
echo "" >>$configfile
echo "[$sharename]" >>$configfile
echo "comment = $comment" >>$configfile
echo "path = $pathname" >>$configfile
echo "writeable = yes" >>$configfile
echo "printable = no" >>$configfile
echo "create mask = 0770" >>$configfile