92fd6f3f4f
git-svn-id: svn://svn.compuextreme.de/Viitor/V962/Viitor_samba@4433 504e572c-2e33-0410-9681-be2bf7408885
30 lines
620 B
Bash
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
|