Configurating a Windows Computer Cluster for PhyloDCcs and HlaAssignCcs


For a machine to run .NET assemblies from a remote fileshare, that fileshare must be trusted. By default, no remote file shares are trusted for code execution.

The script ensures that any file on the targeted path specified is fully trusted for execution, assuming that the user credentials used for execution actually have access to the file (as defined by file system permissions).

Steps (all from the headnode):
@Echo Off
::
::
:: CASPOL_FULLTRUST.cMD
::
:: Modifies code security settings to allow code from a specified path variable
to be fully trusted
::
:: Any executables underneath the trusted path will be trusted.
::
:: dougli 6/19/2006
 
::
:: Modify variables below
 
:variables
set framework=%systemroot%\microsoft.net\framework\v2.0.50727
set framework64=%systemroot%\microsoft.net\framework64\v2.0.50727
 
set trusted_path=PUT THE TRUSTED PATH HERE 
 
 
:main
%framework%\caspol -q -m -ag 1.2 -url "%trusted_path%\*" FullTrust
%framework64%\caspol -q -m -ag 1.2 -url "%trusted_path%\*" FullTrust
%framework%\caspol -q -m -ag 1.3 -url "%trusted_path%\*" FullTrust
%framework64%\caspol -q -m -ag 1.3 -url "%trusted_path%\*" FullTrust



clusrun caspol_fulltrust.cmd



A more detailed description of CASPOL capabilities and options is here and here