How do I share files with my partner?

My partner and I would both like to be able to access our program source file. Most of the time we will be working together, but we would like to be able to access the file from either persons computer account.

Answer:

You can make a directory that either of you can read and write. For example, first make a directory for the assignment (or the entire course). Let's call it hw2. To do that type:

mkdir hw2
Suppose that the above command was typed by user maryk, and her partner was brucej. Then maryk would also type the command:
fs sa hw2 brucej rw
This tells the files system (fs) to set the access (sa) for directory hw2 so that brucej can read and write any files in the directory. If you want to see that it worked, type
fs la hw2
For more about using AFS (the andrew file system, which is used by cats for most files - notice the /afs in front of all of the path names), see http://its.ucsc.edu/services/web/unix/afs/primer.php