What you need

You need three things from the user:

  • <DIR> The top directory to change the permissions on
  • <ROLE> The Role to be added. For instance atlas/Role=production or lhcb/lhcbprod
  • <LFCHOST> The host which runs the lfc daemon for the VO

Finding the names of the directories

Before performing the changes one has to find the names of the directories affected. This should be done using the binary lfc-find tool. For performance reasons it is better to run this command on the LFC host itself. You have to be careful as this entails running the command as root.

  • Log on the host
  • export the environmental variable $LFC_HOST
 #export LFC_HOST=`hostname` 
  • source the grid environment
#source /afs/cern.ch/project/gd/LCG-share/sl3/etc/profile.d/grid_env.sh 
  • Run the lfc-find tool
#afs/cern.ch/project/gd/SC3/lfc-find/lfc-find <DIR> -type d | tee -a ./directories.out   

Changing the ACL

For each directory you need to run the set-acl command

 #for dir in `cat ./directories.out`; do /opt/lcg/bin/lfc-setacl -m
g:<ROLE>:rwx,m:rwx,d:g:<ROLE>:rwx,d:m:rwx ${dir}; done

-- Main.diana - 19 Oct 2006

Edit | Attach | Watch | Print version | History: r5 | r4 < r3 < r2 < r1 | Backlinks | Raw View | Raw edit | More topic actions...
Topic revision: r1 - 2006-10-19 - DianaBosio
    • Cern Search Icon Cern Search
    • TWiki Search Icon TWiki Search
    • Google Search Icon Google Search

    LCG All webs login

This site is powered by the TWiki collaboration platform Powered by PerlCopyright & 2008-2022 by the contributing authors. All material on this collaboration platform is the property of the contributing authors.
or Ideas, requests, problems regarding TWiki? use Discourse or Send feedback