Differences

This shows you the differences between two versions of the page.

documentation:afsusage [2009/11/18 15:12]
Olivier Mehani
documentation:afsusage [2009/11/18 15:14] (current)
Olivier Mehani
Line 1: Line 1:
 +====== Using AFS ======
 +
 +===== Introduction =====
 +
 +AFS is the common file system for any user registered at Rocquencourt. It is easily shared with other users and there are back-ups. It is highly recommended to use it for developments, rather to have all your information on a "private" disk. At least synchronize your files with your AFS account, e.g. using [[http://www.cis.upenn.edu/~bcpierce/unison/|Unison]] or [[http://samba.anu.edu.au/rsync/|rsync]] (see [[:wiki:old#synchronize_with_rsync|script]] below).
 +
 +See also [[http://www.cs.wisc.edu/twiki/bin/view/CSDocs/AfsHowTo| AFS Howto]].
 +
 +
 +===== Access AFS accounts =====
 +If you have a login ''dupont'' and you are at IMARA, then your account is
 +  /afs/inria.fr/rocq/home/imara/dupont
 +your backup (containing the state of your account the day before) is
 +  /afs/inria.fr/rocq/home/imara/dupont.backup
 +
 +This is the path if you have an "AFS computer" (installed and maintained by the AFS team). Recommended for Linux users. Otherwise you can access the AFS server:
 +  \\samba-files\dupont\
 +in the Windows explorer.
 +
 +A useful link is the "common" directory of IMARA:
 +  /afs/inria.fr/rocq/home/imara/common
 +or
 +  \\samba-files\imara\common\
 +in the Windows explorer.
 +
 +For non-AFS Linux computer, there is [[:wiki:old:tools:afsunderlinux|a documentation about how to set up a working AFS node]].
 +
 +Under Unix, you may have to get or revoke a token (which is the way of authentifiying you and giving the rights to the appropriate files) using ''klog'' (with an optional username if your local username differs from the one you want to acquire an AFS token for), ''kdestroy'', and list the currently held tokens using ''tokens''.
 +<code>
 +mehani@vision:~$ klog mehani
 +Password:
 +mehani@vision:~$ tokens
 +
 +Tokens held by the Cache Manager:
 +
 +User's (AFS ID 14037) tokens for afs@inria.fr [Expires Feb  8 12:55]
 +   --End of list--
 +mehani@vision:~$ kdestroy
 +mehani@vision:~$ tokens
 +
 +Tokens held by the Cache Manager:
 +
 +   --End of list--
 +mehani@vision:~$
 +</code>
 +
 +===== Useful commands =====
 +
 +==== Files ====
 +List the AFS quota for the volume containing file or directory ''path''. If no path is specified, the current directory is used.
 +  fs listquota <path>, fs lq <path>
 +
 +List the Access Control List for the directory ''path'' (or the directory containing ''path''). If no path is specified, the current directory is used.
 +  fs listacl <path>, fs la <path>
 +
 +Set the Access Control List for the user ''user'' on the directory ''path''.
 +  fs setacl <path> user acl, fs sa <path> <user> <acl>
 +
 +Recursively set the Access Control List for the user ''user'' on the directory ''path'' and all subdirectories of ''path''.
 +  afs_rseta <path> <user> <acl>
 +
 +or, since this command is not installed in INRIA's AFS version:
 +  find . -type d -print -exec fs sa {} <user> <acl> \;
 +
 +==== Groups ====
 +Create a group named ''username:group''. ''username'' must be your username.
 +  pts creategroup <username:group>
 +
 +Add user ''user'' to group ''username:group''. Usually ''username'' is your username.
 +  pts adduser <user> <username:group>
 +
 +Remove user ''user'' from group ''username:group''. Usually ''username'' is your username.
 +  pts removeuser <user> <username:group>
 +
 +List the groups ''user'' is a member of.
 +  pts membership <user>
 +
 +List the members of group ''username:group''.
 +  pts membership <username:group>
 +
 +List the groups owned by ''username''.
 +  pts listowned <username>
 +
 +===== Useful script =====
 +
 +==== Synchronize with rsync ====
 +This small script, [[https://gforge.inria.fr/plugins/scmsvn/viewcvs.php/*checkout*/misc/bin/backup_to_afs.sh?content-type=text%2Fplain&root=mehani|backup_to_afs.sh]], will take care of synchronizing your current home directory to AFS, assuming your local and AFS usernames are the same (and defaulting to ''mehani'' is not found in the environment).
 +
 +{{tag>documentation}}
 
documentation/afsusage.txt · Last modified: 2009/11/18 15:14 by Olivier Mehani
Recent changes · Show pagesource · Login