


AKLOG(1)                 USER COMMANDS                   AKLOG(1)



NAME
     aklog - Obtain tokens for authentication to AFS


SYNOPSIS
     aklog [ -d ] [ -zsubs ] [ -noprdb ] [ [ -cell | -c ] cell  [
     -k kerberos-realm ] ] [ [ -path | -p ] pathname ]


DESCRIPTION
     The _a_k_l_o_g program is used  to  authenticate  to  a  cell  or
     directory  in  _A_F_S,  the Andrew Filesystem, by obtaining AFS
     _t_o_k_e_n_s. Ordinarily, aklog is not used directly but called by
     _a_t_t_a_c_h(1).

     If _a_k_l_o_g is invoked with no command line arguments, it  will
     obtain  tokens for the workstation's local cell.  It is pos-
     sible to invoke _a_k_l_o_g with arbitrarily many cells and  path-
     names  specified  on  the  command  line. _a_k_l_o_g knows how to
     expand cell name abbreviations, so short forms of cell names
     can be use used.  In addition, _a_k_l_o_g understands the follow-
     ing command line options:


     -cell | -c cell
         This flag is not ordinarily necessary  since  _a_k_l_o_g  can
         usually  figure  out when an argument is a cell.  It can
         be used to introduce a cell name that  would  ordinarily
         be  mistaken for a path name if this should be required.
         If this flag is omitted, an argument will be treated  as
         a cell name if it contains no slashes (/) and is neither
         "." nor ".." .


     -k kerberos-realm
         This flag is valid only when immediately  following  the
         name  of a cell.  It is used to tell _a_k_l_o_g what kerberos
         realm should be used while authenticating to the preced-
         ing  cell.  This argument is unnecessary except when the
         workstation is  not  properly  configured.   Ordinarily,
         _a_k_l_o_g can determine this information on its own.


     -path | -p pathname
         Like the -cell flag, this flag is  usually  unnecessary.
         When  it  appears,  the  next  command  line argument is
         always treated as a path name.  Ordinarily, an  argument
         is  treated as a path name if it is "." or ".." or if it
         contains a slash (/).


     -zsubs



Sun Release 4.1    Last change: August 1, 1990                  1






AKLOG(1)                 USER COMMANDS                   AKLOG(1)



         Causes the printing of the zephyr subscription  informa-
         tion  that  a  person  using  a given path or cell would
         want. _A_t_t_a_c_h(1) invokes _a_k_l_o_g  with  this  option.   The
         output is of the form

         zsub: _i_n_s_t_a_n_c_e

         where _i_n_s_t_a_n_c_e is the instance of a class filsrv  zephyr
         subscription.


     -noprdb
         Ordinarily, aklog looks up the AFS ID  corresponding  to
         the name of the person invoking the command.  Specifying
         this flag turns off this  functionality.   This  may  be
         desirable  if the protection database is unavailable for
         some reason and tokens are desired anyway.


     -d  Turns on printing of debugging information.  This option
         is not intended for general users.


EXIT CODES
     The exit status of _a_k_l_o_g will be one of the following:

     0    Success -- No error occurred.

     1    Usage -- Bad command syntax;  accompanied  by  a  usage
          message.

     2    Something failed -- More than one cell or pathname  was
          given  on  the  command  line  and at least one failure
          occurred.  A more specific  error  status  is  returned
          when only one directive is given.

     3    AFS -- Unable to get AFS configuration or unable to get
          information about a specific cell.

     4    Kerberos -- Unable to get tickets for authentication.

     5    Token -- Unable to get tokens.

     6    Bad pathname -- The path given was not a  directory  or
          _l_s_t_a_t(_2) failed on some component of the pathname.

     7    Miscellaneous -- An  internal  failure  occurred.   For
          example, _a_k_l_o_g returns this if it runs out of memory.


EXAMPLES
     To get tokens for the local cell:



Sun Release 4.1    Last change: August 1, 1990                  2






AKLOG(1)                 USER COMMANDS                   AKLOG(1)



     % aklog

     To get tokens for the athena.mit.edu cell:
     % aklog athena.mit.edu
     or
     % aklog athena

     To       get       tokens       adequate       to       read
     /afs/athena.mit.edu/user/p/potato:
     % aklog /afs/athena.mit.edu/user/p/potato

     To get tokens for a test cell that is  in  a  test  Kerberos
     realm:
     % aklog testcell.mit.edu -k TESTREALM.MIT.EDU


SEE ALSO
     attach(1), tokens(1), unlog(1)


AUTHOR
     Emanuel Jay Berkenbilt (MIT-Project Athena)

































Sun Release 4.1    Last change: August 1, 1990                  3



