30 lines
620 B
Plaintext
30 lines
620 B
Plaintext
|
#!/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<65>tigt, und dienen zur
|
|||
|
#Unterst<73>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
|