source: trunk/athena/bin/aklog/aklog.1 @ 5847

Revision 5847, 4.4 KB checked in by probe, 33 years ago (diff)
Document -hosts option
Line 
1.\"
2.\" $Id: aklog.1,v 1.4 1992-02-03 09:30:13 probe Exp $
3.\"
4.\" Copyright 1990,1991 by the Massachusetts Institute of Technology
5.\" For distribution and copying rights, see the file "mit-copyright.h"
6.\"
7.TH AKLOG 1 "August 1, 1990"
8.UC 4
9.SH NAME
10aklog \- Obtain tokens for authentication to AFS
11
12.SH SYNOPSIS
13.B aklog
14[
15.B \-d
16] [
17.B \-hosts
18] [
19.B \-zsubs
20] [
21.B \-noprdb
22] [ [
23.B \-cell | \-c
24] cell [
25.B \-k
26kerberos-realm
27] ] [ [
28.B \-path | \-p
29] pathname ]
30
31.SH DESCRIPTION
32The
33.I aklog
34program is used to authenticate to a cell or directory in
35.I AFS,
36the Andrew Filesystem, by obtaining AFS
37.I tokens. 
38Ordinarily, aklog is not used directly but called by
39.IR attach (1).
40
41If
42.I aklog
43is invoked with no command line arguments, it will obtain tokens
44for the workstation's local cell.  It is possible to invoke
45.I aklog
46with arbitrarily many cells and pathnames
47specified on the command line. 
48.I aklog
49knows how to expand cell name abbreviations, so short
50forms of cell names can be use used.  In addition,
51.I aklog
52understands the following command line options:
53
54.TP 4
55.B  \-cell | \-c \fRcell
56This flag is not ordinarily necessary since
57.I aklog
58can usually figure out when an argument is a cell.  It can be
59used to introduce a cell name that would ordinarily be mistaken
60for a path name if this should be required.  If this flag is
61omitted, an argument will be treated as a cell name if it
62contains no slashes (/) and is neither "." nor ".." .
63
64.TP
65.B \-k \fRkerberos-realm
66This flag is valid only when immediately following the name of a
67cell.  It is used to tell
68.I aklog
69what kerberos realm should be used while authenticating to the
70preceding cell.  This argument is unnecessary except when the
71workstation is not properly configured.  Ordinarily,
72.I aklog
73can determine this information on its own.
74
75.TP
76.B \-path | \-p \fRpathname
77Like the \-cell flag, this flag is usually unnecessary.  When it
78appears, the next command line argument is always treated as a
79path name.  Ordinarily, an argument is treated as a path name
80if it is "." or ".." or if it contains a slash (/). 
81
82.TP
83.B \-hosts
84Prints all the server addresses which may act as a single point of
85failure in accessing the specified directory path.  Each element of the
86path is examined, and as new volumes are traversed, if they are not
87replicated, the server's IP address containing the volume will be
88displayed.
89.IR Attach (1)
90invokes
91.I aklog
92with this option.  The output is of the form
93
94host:
95.I IP address
96
97.TP
98.B \-zsubs
99Causes the printing of the zephyr subscription information that a
100person using a given path or cell would want. 
101.IR Attach (1)
102invokes
103.I aklog
104with this option.  The output is of the form
105
106zsub:
107.I instance
108
109where
110.I instance
111is the instance of a class filsrv zephyr subscription.
112
113.TP
114.B \-noprdb
115Ordinarily, aklog looks up the AFS ID corresponding to the name
116of the person invoking the command.  Specifying this flag turns
117off this functionality.  This may be desirable if the protection
118database is unavailable for some reason and tokens are desired
119anyway. 
120
121.TP
122.B \-d
123Turns on printing of debugging information.  This option is not
124intended for general users.
125
126.SH EXIT CODES
127The exit status of
128.I aklog
129will be one of the following:
130.TP 5
1310
132Success -- No error occurred.
133.TP 5
1341
135Usage -- Bad command syntax; accompanied by a usage message.
136.TP 5
1372
138Something failed -- More than one cell or pathname was given on
139the command line and at least one failure occurred.
140A more specific error status is returned when only one directive
141is given.
142.TP 5
1433
144AFS -- Unable to get AFS configuration or unable to get
145information about a specific cell.
146.TP 5
1474
148Kerberos -- Unable to get tickets for authentication.
149.TP 5
1505
151Token -- Unable to get tokens.
152.TP 5
1536
154Bad pathname -- The path given was not a directory or
155.I lstat(2)
156failed on some component of the pathname.
157.TP 5
1587
159Miscellaneous -- An internal failure occurred.  For example,
160.I aklog
161returns this if it runs out of memory.
162
163.SH EXAMPLES
164.br
165To get tokens for the local cell:
166.br
167% aklog
168
169To get tokens for the athena.mit.edu cell:
170.br
171% aklog athena.mit.edu
172.br
173or
174.br
175% aklog athena
176
177To get tokens adequate to read /afs/athena.mit.edu/user/p/potato:
178.br
179% aklog /afs/athena.mit.edu/user/p/potato
180
181To get tokens for a test cell that is in a test Kerberos realm:
182.br
183% aklog testcell.mit.edu -k TESTREALM.MIT.EDU
184
185.SH SEE ALSO
186attach(1), tokens(1), unlog(1)
187
188.SH AUTHOR
189Emanuel Jay Berkenbilt (MIT-Project Athena)
Note: See TracBrowser for help on using the repository browser.