Making a Scientific Linux 6 Computer an AFS Client
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.
- 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
- Edit /etc/krb5.conf
- 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 - Below [realms] enter the following:
NJIT.EDU = {
kdc = kay00.njit.edy
kdc = kay01.njit.edu
kdc = kay02.njit.edu
admin_server = kay00.njit.edu
} - Below [domain_realm] enter the following:
njit.edu = NJIT.EDU
.njit.edu = NJIT.EDU - Start OpenAFS
/etc/init.d/afs start
- Obtain your Kerberos ticket using kinit, and your AFS token using aklog
kinit UCID && aklog
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.
- Create a directory named afs in your local home directory:
mkdir /home/<user>/afs
- 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