Viitor_samba/opt/samba/scripts/addshare
kueller d4517233f3 Neue Version V963
git-svn-id: svn://svn.compuextreme.de/Viitor/V963/Viitor_samba@5933 504e572c-2e33-0410-9681-be2bf7408885
2011-01-03 10:48:06 +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