Ultra quick Guide to Using AFS
noe 01/05/22
o display Access Control List (ACL) of a directory or file:
fs la <dir>
r=read,w=write,l=list,d=delete,i=insert,a=administer,k=lock
r,w and k apply to files, the rest to the directory.
o change ACL :
fs sa <dir> <id> <acl>
e.g.
fs sa . desy-hosts rl
A file is readable if
the file has mode 0400 or more AND
the user has 'r' and 'l' permissions in the ACL.
A file is writable if
the file has mode 0200 or more AND
the user has 'w' and 'l' permissions in the ACL.
For 'chmod' on a file you need 'w'
For 'chmod' on a directory you need 'd','i' and 'l'.
o check members of a group
o check the quota of an AFS volume
'chown' does not work in AFS. To create a file or directory with a
specific group try
sg <group> -c 'touch <file>'
sg <group> -c 'mkdir <dir>'
or use 'newgrp'.