Making a Scientific Linux 6 Computer an AFS Client

 

These instructions are for Scientific Linux 6 only. They have not been tested on versions older or newer than 6.
 

These are instructions for making your Scientific Linux 6 computer an AFS client - i.e. connecting it to AFS space (/afs/cad/... )

The openafs.x86_64 package and dependencies are needed to install OpenAFS.

  1. yum install openafs.x86_64 openafs-client.x86_64 openafs-krb5.x86_64 openafs-1.6-sl-krb5.x86_64 krb5-workstation.x86_64 kmod-openafs-1.6-sl-229.x86_64 openafs-module-tools.x86_64
  2. Edit /etc/krb5.conf
  3. Below [libdefaults] enter the following:
    default_realm = NJIT.EDU
    dns_lookup_realm = false
    dns_lookup_kdc = false
    ticket_lifetime = 24h
    renew_lifetime = 7d
    forwardable = true
  4. Below [realms] enter the following:
    NJIT.EDU = {
    kdc = kay00.njit.edy
    kdc = kay01.njit.edu
    kdc = kay02.njit.edu
    admin_server = kay00.njit.edu
    }
  5. Below [domain_realm] enter the following:
    njit.edu = NJIT.EDU
    .njit.edu = NJIT.EDU
  6. Start OpenAFS
    /etc/init.d/afs start
  7. Obtain your Kerberos ticket using kinit, and your AFS token using aklog
    kinit UCID && aklog
You should now bw able to access your AFS home directory.
cd /afs/cad/u/<first_letter_of_ucid>/<second_letter_of_ucid>/<your_ucid>/

For example, for UCID abc123:

cd /afs/cad.njit.edu/u/a/b/abc123/

For convenience, you can create a symbolic link, e.g., "afs", for quicker access to your AFS home directory.

  1. Create a directory named afs in your local home directory:
    mkdir /home/<user>/afs
  2. Create a symbolic link from your AFS directory to afs in your /home directory:

    ln -s /afs/cad/u/<first_letter_of_ucid>/<second_letter_of_ucid>/<your_ucid>/ ~<user>/afs

You can now access your AFS home directory by:

cd ~/afs
Last Updated: June 29, 2017