After a lot of hassle trying to= figure out linux umask settings etc I set up a few functions to create fol=ders / move files using 'chmod' to set the exact permisions I want.==C2=A0 Copies of the functions are below
- Tom
[!]=
++++++++++++++++++++++++++++++++++=+++++++++++++++++++++++++
### =C2=A0Create Folder =C2=A0###
+++++++++++++++++++++++++++++++++++++++++++++++++++++++++++
=
FUNCTION Name: smCreateFolder
=C2=A0 ** Description: C=reate Folder with 770 permissions
=C2=A0 ** Input:=C2=A0
=C2=A0 =C2=A0 =C2=A0 =C2=A0 folderPath =3D (the url to the folder) - requ=ired=C2=A0 =C2=A0 =C2=A0 =C2=A0 folderPerms =3D (folder permissi=ons) - optional, defaults to 770
=C2=A0 ** usage:=C2=A0
=C2=A0 =C2=A0 =C2=A0 =C2=A0 [smCreateFolder folderPath=3D<path to the f=older>]
[/!][function name=3DsmCreateFolder][!]=
=[/!][text]tReturn=3D[/text][!]
### =C2=A0Defa=ult values =C2=A0###
[/!][text]tFOLDERPATH=3D[/text][!=]
=[/!][text]tPERMISSIONS=3D770[/text][!]
### ==C2=A0Incoming [params_string] values =C2=A0###
[/!][s=howif [url][params_string][/url]^folderPath][text]tFOLDERPATH=3D[folderPath=][/text][/showif][!]
[/!][showif [url][params_string][/url]^folderP=erms][text]tPERMISSIONS=3D[folderPerms][/text][/showif][!]
=div>
<=/span>### =C2=A0Do nothing if required fields are not passed through =C2=A0=###
[/!][hideif [url][tFOLDERPATH][/url]]=3D][!]
=
### =C2=A0Hideif the folder exists =C2=A0###
[/!][hideif [fileinfo file=3D[tFOLDERPATH]][exists][/fileinfo]=3D=T][!]
### =C2=A0Create the folders to the final f=older =C2=A0###
[/!][text]varPATH=3D[showif [url][tFOLDERPATH][/url=]~[url]/[/url]]/[/showif][/text][!]
[/!][listwords words=3D[url][tF=OLDERPATH][/url]&delimiters=3D/][!]
[/!][hideif [fileinfo file==3D[varPATH][word]][exists][/fileinfo]=3DT][!]
[/!][createfolder =path=3D[varPATH][word]][!]
[/!][text]varFULLPATH=3D[fileinfo file==3D[varPATH][word]][fullpath][/fileinfo][/text][!]
[/!][shell]/bi=n/chmod [tPERMISSIONS] [varFULLPATH][/shell][!]
[/!][/hideif][!]=div>
=[/!][text]varPATH=3D[varPATH][word]/[/text][!]
[/!][/listwo=rds][!]
[/!][/hideif][!]
[/!][/hideif][!]
=
[/!][return][tReturn][/return][!]
[/!][/function]=
[!]
------------------------------------
<=div>
=### =C2=A0SiteMinder Function : Move File with 660 permissions =C2=A0###
[/!][function name=3DsmFunctionMoveFile][!]
# set the default permissions #
[/!][text]tPERMISSIONS==3D660[/text][!]
# override from 'params_string=9; #
[/!][showif [url][params_string][/url]^perms][text]tPERMISSIONS==3D[perms][/text][/showif][!]
# move the file #
<=div>
=[/!][movefile from=3D[from]&to=3D[to]][!]
# get th=e full path #
[/!][text]varFULLPATH=3D[fileinfo file=3D[to]][fullpath=][/fileinfo][/text][!]
# set the permissions #
[=/!][shell]/bin/chmod [tPERMISSIONS] [varFULLPATH][/shell][!]