Making an Ubuntu 14.04 Computer an AFS Client

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

  • sudo apt-get install openafs-krb5 openafs-client
  • Information you will need to supply:
    • Disk space : y
    • Default cell :
    • AFS cache : default

The installation of openafs-krb5 and openafs-client should now start. When completed, you should see "DKMS: install completed".

  • sudo apt-get install krb5-user
  • Information you will need to supply:
    • Realm : NJIT.EDU
    • Servers :
    • Admin server :
  • Edit /etc/krb5.conf
  • Below [libdefaults] enter the following:
    dns_lookup_realm = false
    dns_lookup_kdc = false
  • Below [realms] enter the following within the "NJIT.EDU =" curly brackets
    default_domain =

Reboot your computer. The OpenAFS client should start up upon reboot.

  • Obtain your Kerberos ticket using kinit, and your AFS token using aklog
    kinit UCID && aklog

You should now be 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/

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: September 5, 2019