wiki:acl-integration-scripts
Last modified 13 years ago Last modified on 01/17/08 15:30:33

Sample scripts

chimera-set-acl.sh

#!/bin/sh


ourHomeDir=/opt/d-cache
ourHome=/opt/d-cache

. ${ourHomeDir}/classes/extern.classpath
. ${ourHomeDir}/config/dCacheSetup

${java} ${java_options} -classpath ${externalLibsClassPath} 
              -Xmx512M -Dacl.configuration=${ourHomeDir}/config/acl.properties 
-Dlog4j.configuration=file:${ourHomeDir}/config/log4j.properties 
org.dcache.chimera.acl.client.SetAclClient 
"0000EBA6BEC1CCD0465A89C7B48F2AB6F181:FILE
0:USER:1000:c:DENY
1:USER:1000:t:ALLOW
2:USER:1000:rwx:ALLOW"

chimera-get-acl.sh

#!/bin/sh

if [ $# -ne 1 ]
then

    echo "usage get-acl <pnfsid>"
    exit 1;

fi

pnfsid=$1

ourHomeDir=/opt/d-cache
ourHome=/opt/d-cache

. ${ourHomeDir}/classes/extern.classpath
. ${ourHomeDir}/config/dCacheSetup

${java} ${java_options} -classpath ${externalLibsClassPath} 
              -Xmx512M -Dacl.configuration="${ourHomeDir}/config/acl.properties" 
-Dlog4j.configuration="file:${ourHomeDir}/config/log4j.properties" 
"org.dcache.chimera.acl.client.GetAclClient" ${pnfsid}

Back to original page Integration of ACL in dCache.