AFSAbout AFSThe Andrew File System (AFS) is a wide area filesystem. There are currently two open-source implementations, OpenAFS and Arla. Why use AFS?Compared to NFS and SMB (Windows File Sharing), AFS is:
Installing OpenAFS and AuthenticatingFollow the directions appropriate for your operating system:
CommandsAll the AFS commands a user needs are contained within the fs binary; to see a list of commands, type:
fs help
The most important two commands are la (“list ACL”) and sa (“set ACL”). In AFS, access control lists (ACLs) are on a per-directory basis rather than a per-file basis: permissions for a directory apply to all the files in it. When a new directory is created, it is given a copy of its parent directory's ACL. To display the ACL on a directory (such as /afs/research.cs.berkeley.edu/), type
$ fs la /afs/research.cs.berkeley.edu/
Access list for /afs/research.cs.berkeley.edu/ is Normal rights: megacz@eecs.berkeley.edu rlidwka system:anyuser rl Each line of the output shows the user or group; system:anyuser is a special group that all users belong to. The access rights are each represented by a single letter:
To set an ACL, use the fs sa command:
$ fs sa /afs/research.cs.berkeley.edu/dropbox/ system:anyuser li
$ fs la /afs/research.cs.berkeley.edu/dropbox/ Access list for /afs/research.cs.berkeley.edu/dropbox/ is Normal rights: system:administrators rlidwka system:anyuser li There are also abbreviations for applying commonly used permission sets: read, write, all, and none. EncryptionOnce you have installed OpenAFS, you should turn on over-the-wire encryption by typing this command (as root on Mac OS and Linux, or Administrator on Windows):
fs setcrypt on
|