To Add a Client Computer to AFS...

Our hypothetical client system's hostname is 'leroy'

Leroy is a Redhat-style i386 Linux system.

  1. Install the necessary software packages.
  2. Modify /etc/krb5.conf to read as:
     default = FILE:/var/log/krb5libs.log
     kdc = FILE:/var/log/krb5kdc.log
     admin_server = FILE:/var/log/kadmind.log
     ticket_lifetime = 24000
     default_realm = NICK.GS.WASHINGTON.EDU
     dns_lookup_realm = false
     dns_lookup_kdc = false
      kdc =
      admin_server =
      default_domain =
     profile = /var/kerberos/krb5kdc/kdc.conf
     pam = {
       debug = false
       afs_cells =
       ticket_lifetime = 36000
       renew_lifetime = 36000
       forwardable = true
       krb4_convert = false
  3. Modify /etc/krb.conf to read as:
  4. Modify /etc/krb.realms to read as:
  5. Modify /usr/vice/etc/CellServDB to read as:
    > #Cell name
  6. Modify /usr/vice/etc/ThisCell to read as:
  7. Modify /usr/vice/etc/cacheinfo to read as:
  8. Modify /etc/sysconfig/afs such that:
  9. Start AFS up for the first time: /etc/init.d/afs start
  10. Place /etc/rc.d symbolic links such that AFS is started automagically upon system reboot and shutdown gracefully on system halt.

At this point AFS is installed and running.

To automatically obtain Kerberos tickets and AFS credentials for system users, modify /etc/pam.d scripts as follows.

  1. Modify /etc/pam.d/system-auth to read as:
    # This file is auto-generated.
    # User changes will be destroyed the next time authconfig is run.
    auth        required      /lib/security/
    auth        sufficient    /lib/security/ likeauth nullok
    auth        sufficient    /lib/security/ use_first_pass ignore_root tokens
    auth        required      /lib/security/
    account     required      /lib/security/
    password    required      /lib/security/ retry=3 type=
    password    sufficient    /lib/security/ nullok use_authtok md5 shadow
    password    sufficient    /lib/security/ try_first_pass ignore_root use_authtok
    password    required      /lib/security/
    session     required      /lib/security/
    session     required      /lib/security/
    session     optional      /lib/security/ ignore_root use_authtok