15-410 AFS space
If you are getting AFS permission errors before
your personal volume has been created, try this:
Your AFS volume for 15-410 is located at /afs/cs.cmu.edu/academic/class/15410-f14/usr/$USER. Since this volume is in the CS cell, you will need to use cross-cell authentication. Luckily, this is easy. Whenever you log in to an Andrew machine, or use kinit to get new tickets, run aklog cs.cmu.edu. You may wish to arrange that this command is executed each time you log in.
I deleted my files--Help!!
Your backup AFS volume is a snapshot of your live volume, taken some time around midnight. So if it's noon and you just deleted an important file, you might be in luck. If it's Fall of 2006 and your username is xyzzy, then:
You will need to edit the pathname as appropriate...note that the backup pathname contains two more dots than the pathname of your regular volume. Also note that symbolic links in your backup volume point to live volumes, so the mygroup/ symbolic link in your backup volume will point to your group's live volume (the one you just deleted the file from) and you will need to manually construct the pathname to your group's backup volume.
If you have permission problems with your AFS space,
please try the program we have developed to diagnose them:
DO NOT SEND US MAIL saying "I am having trouble accessing my AFS space". You must always provide us with a detailed explanation of the problem, such as a transcript of your session showing what you tried. Of course, you should not mail us the transcript; as with anything else, you should place it in a location where we can access it and tell us where that is.
If access_scratch does fix things for you, its output should give you a clue as to what you could do in the future to avoid the trouble.
Please note that AFS, like anything else, may break from time to time. If you receive errors such as Connection timed out or No such device, please wait at least one hour before contacting course staff--these outages frequently resolve themselves (or are resolved by elves). In the other direction, once two to four hours have gone by, please send us mail (and post to the .qa bboard so fellow students know mail has been sent).
Inside your volume you will see multiple directories. With a few exceptions, these are your hand-in directories (p0, p1, ... are for projects; hw0, hw1, etc. are for homeworks). We have provided two directories for you to use while you are preparing your assignments:
Avoid non-Unix File-Transfer Tools
Any time you move 410-related files around with non-Unix
utilities such as
If you use a non-Unix file-transfer tool to copy a file
from one part of your AFS space to another, any time you copy
an executable program file it will probably stop being
executable. This is because on Windows files are considered
executable when the file's name ends in
How should you move files around? The best way is probably
to use standard Unix
shell-prompt commands (
Accessing your CS AFS space via scp or sftp
If you try to use scp or an
If your Andrew account already has a ~/.ssh/rc file, then you should have enough understanding of ssh to merge in our file (see below), so do so.
Otherwise, try this command. If it asks you to overwrite something, then--oops--you do already have an ssh rc file, so answer "no" and do the merge.
cp -pi /afs/cs.cmu.edu/academic/class/15410-f14/pub/dotssh-slash-rc ~/.ssh/rc
Using your CS AFS space as a remote repository
Some students doing development on a non-Andrew machine (which we cannot in general support) have reported permission problems when they try to use ssh to access revision-control repositories contained in their 410 AFS space. The problem is that the ssh server on the Andrew Linux machine you contact gets AFS tokens for the Andrew AFS cell before executing the command you specify, but it doesn't know you will need tokens for the CS AFS cell.
We have received a report that the following will enable CVS over ssh.
This instructs CVS client programs (on your personal machine) to request the Andrew Linux machine providing access to your repository to run the indicated sequence of commands; the first will acquire CS AFS tokens and the second will run the CVS protocol.
[Last modified Thursday August 27, 2009]