+A  Click here to enlarge/reduce to/back from full screen 
Paul Scherrer Institut PSI AIT LINUX Support

PSI Home |  LOG Home |  AIT Home |  Search |  Helpdesk |  Contact Us | 





5. AFS Tips and Tricks

  • Creating a regular group linux_adm:svn_adm for repository administrators (assumed there is a group named linux_adm and you are member of this group):

    pts creategroup linux_adm:svn_adm -owner linux_adm
  • Creating a regular group linux_adm:svn_rw for ordinary users (assumed there is a group named linux_adm:svn_adm and you are member of this group):

    pts creategroup linux_adm:svn_rw -owner linux_adm
  • Deleting the group linux_adm:svn_rw:

    pts delete -nameorid linux_adm:svn_rw
  • Adding the user gsell to the group linux_adm:svn_rw:

    pts adduser -user gsell  -group linux_adm:svn_rw
  • Removing the user gsell from the group linux_adm:svn_rw:

    pts removeuser -user gsell  -group linux_adm:svn_rw
  • List AFS ACL's of the directory /afs/psi.ch/project/linux/svn:

    fs listacl /afs/psi.ch/project/linux/svn
  • Set AFS ACL for the directory /afs/psi.ch/project/linux/svn for the group linux_adm:svn_adm to rlidwka:

    fs setacl /afs/psi.ch/project/linux/svn linux_adm:svn_adm rlidwka
  • Remove/clear AFS ACL for the directory /afs/psi.ch/project/linux/svn for the group linux_adm:svn_adm:

    fs setacl /afs/psi.ch/project/linux/svn linux_adm:svn_rw none
[Note]

AFS ACL's are defined per directories not per file. Thus all files in a directory share the same access rights.

[Note]

If you are using the GNU version of the find(1) command on AFS, you should set the -noleaf flag - otherwise you may miss some directories. On Linux systems you always have the GNU variant installed.