[13655] | 1 | .\" |
---|
| 2 | .\" $Id: rkinit.1,v 1.1 1999-10-05 17:08:34 danw Exp $ |
---|
| 3 | .\" |
---|
| 4 | .\" |
---|
| 5 | .TH RKINIT 1 "November 12, 1989" |
---|
| 6 | .UC 4 |
---|
| 7 | .SH NAME |
---|
| 8 | rkinit \- establish kerberos tickets safely on a remote host |
---|
| 9 | .SH SYNOPSIS |
---|
| 10 | .B rkinit [ host ] |
---|
| 11 | [ -p |
---|
| 12 | .B principal |
---|
| 13 | ] [ -l |
---|
| 14 | .B username |
---|
| 15 | ] [ -k |
---|
| 16 | .B kerberos_realm |
---|
| 17 | ] [ -f |
---|
| 18 | .B ticket_file |
---|
| 19 | ] [ -h |
---|
| 20 | .B remote_host |
---|
| 21 | ] [ -t |
---|
| 22 | .B ticket_lifetime |
---|
| 23 | ] [ |
---|
| 24 | .B \-notimeout |
---|
| 25 | ] |
---|
| 26 | |
---|
| 27 | A host name must be specified either as the first command line |
---|
| 28 | argument or following a \-h flag. If redundant command line |
---|
| 29 | arguments are given, the last one to appear takes precedence. |
---|
| 30 | |
---|
| 31 | .SH DESCRIPTION |
---|
| 32 | .I rkinit |
---|
| 33 | is a program that allows a user to establish kerberos tickets on |
---|
| 34 | a remote host registered for |
---|
| 35 | rlogin service. This can be done without the user's kerberos |
---|
| 36 | password ever leaving the client machine. |
---|
| 37 | |
---|
| 38 | In order to establish tickets remotely |
---|
| 39 | without the use of something like |
---|
| 40 | .I rkinit, |
---|
| 41 | one would have to log in to the |
---|
| 42 | remote host and run |
---|
| 43 | .IR kinit (1). |
---|
| 44 | .I rkinit |
---|
| 45 | followed by |
---|
| 46 | .I rlogin |
---|
| 47 | can be thought of as a safe substitute for |
---|
| 48 | .I rlogin |
---|
| 49 | followed |
---|
| 50 | .I kinit. |
---|
| 51 | |
---|
| 52 | .I rkinit |
---|
| 53 | uses the same access checking mechanism as |
---|
| 54 | .I rlogin. |
---|
| 55 | That means that |
---|
| 56 | .I rkinit |
---|
| 57 | can be used to create any tickets for user |
---|
| 58 | .I A |
---|
| 59 | on remote host |
---|
| 60 | .I B |
---|
| 61 | if and only if |
---|
| 62 | .IR A 's |
---|
| 63 | tickets would entitle a login to |
---|
| 64 | .I B. |
---|
| 65 | This means that one can create remote tickets for himself or for |
---|
| 66 | another user if he is in that user's .klogin file. |
---|
| 67 | |
---|
| 68 | .I rkinit |
---|
| 69 | understands the following command line options: |
---|
| 70 | |
---|
| 71 | .TP 4 |
---|
| 72 | .B \-p \fIprincipal\fR |
---|
| 73 | If |
---|
| 74 | .I principal, |
---|
| 75 | in the format |
---|
| 76 | .I name[.inst][@realm] |
---|
| 77 | is specified, the tickets created on the remote host will be the |
---|
| 78 | tickets indicated by the |
---|
| 79 | .I principal |
---|
| 80 | field. If this option is not given, the following defaults are |
---|
| 81 | used: If the user running |
---|
| 82 | .I rkinit |
---|
| 83 | does not have tickets on the client machine, |
---|
| 84 | .I rkinit |
---|
| 85 | will prompt for a password and behave effectively as if the user |
---|
| 86 | had invoked |
---|
| 87 | .I kinit |
---|
| 88 | on the specified |
---|
| 89 | remote host; i.e., |
---|
| 90 | the tickets established will be owned on the remote host |
---|
| 91 | by the user who invoked |
---|
| 92 | .I rkinit |
---|
| 93 | and will be for the local realm of the |
---|
| 94 | remote host. |
---|
| 95 | If the user running |
---|
| 96 | .I rkinit |
---|
| 97 | already has tickets, |
---|
| 98 | .I rkinit |
---|
| 99 | will prompt for a password and create tickets whose principal |
---|
| 100 | matches that of the |
---|
| 101 | tickets that the user already has. |
---|
| 102 | |
---|
| 103 | |
---|
| 104 | .TP |
---|
| 105 | .B \-l \fIusername\fR |
---|
| 106 | If |
---|
| 107 | .I username |
---|
| 108 | is specified, the ticket file on the remote host will be owned by the |
---|
| 109 | user |
---|
| 110 | .I username. |
---|
| 111 | If it is not specified, the tickets will be owned by |
---|
| 112 | the remote user whose login name matches that of the user invoking |
---|
| 113 | .I rkinit. |
---|
| 114 | |
---|
| 115 | .TP |
---|
| 116 | .B \-r \fIrealm\fR |
---|
| 117 | .I realm |
---|
| 118 | is used to tell |
---|
| 119 | .I rkinit |
---|
| 120 | what realm the remote host is in. This |
---|
| 121 | option should not usually have to be used since |
---|
| 122 | .I rkinit |
---|
| 123 | uses |
---|
| 124 | .IR krb_realmofhost (3) |
---|
| 125 | to determine the remote host's kerberos realm. Note that this |
---|
| 126 | is distinct from realm as specified in |
---|
| 127 | .I principal, |
---|
| 128 | which refers to the realm of the remote tickets. |
---|
| 129 | |
---|
| 130 | .TP |
---|
| 131 | .B \-f \fIticket_file\fR |
---|
| 132 | This option is used to specify the name of the ticket file that |
---|
| 133 | should be used on the remote host. Note that if you |
---|
| 134 | specify a location for the ticket file that is other |
---|
| 135 | than the default, you will have to set the environment variable |
---|
| 136 | KRBTKFILE to that filename once you get to the remote host in |
---|
| 137 | order for you to use the tickets. |
---|
| 138 | If a ticket file is not specified, the tickets will |
---|
| 139 | be placed in the |
---|
| 140 | default location as specified by |
---|
| 141 | .IR tkt_file (3). |
---|
| 142 | On a UNIX host, this is /tmp/tkt<uid>, where |
---|
| 143 | <uid> is the user id of the person who owns the remote ticket file. |
---|
| 144 | |
---|
| 145 | .TP |
---|
| 146 | .B \-h \fIremote_host\fR |
---|
| 147 | .I remote host |
---|
| 148 | is the host on which remote tickets are being obtained. This |
---|
| 149 | option can be used in place of specifying the host as the first |
---|
| 150 | command line argument. |
---|
| 151 | |
---|
| 152 | .TP |
---|
| 153 | .B \-t \fIticket_lifetime\fR |
---|
| 154 | .I ticket lifetime |
---|
| 155 | is the lifetime in minutes of the remote tickets. If it is not |
---|
| 156 | specified, the default ticket life time (as defined in krb.h) is |
---|
| 157 | used. |
---|
| 158 | |
---|
| 159 | .TP |
---|
| 160 | .B \-notimeout |
---|
| 161 | prevents the client from timing out. This is mainly useful only |
---|
| 162 | for debugging since the rkinit server also times out. |
---|
| 163 | |
---|
| 164 | .SH EXAMPLES |
---|
| 165 | |
---|
| 166 | In the following examples, |
---|
| 167 | .B tabetha |
---|
| 168 | and |
---|
| 169 | .B soup |
---|
| 170 | are machines in the |
---|
| 171 | .B ATHENA.MIT.EDU |
---|
| 172 | kerberos realm and |
---|
| 173 | .B local |
---|
| 174 | is a user who can log in |
---|
| 175 | to |
---|
| 176 | .B soup |
---|
| 177 | and has |
---|
| 178 | .B qjb.root@ATHENA.MIT.EDU |
---|
| 179 | in his .klogin file. |
---|
| 180 | |
---|
| 181 | |
---|
| 182 | % rkinit tabetha |
---|
| 183 | .br |
---|
| 184 | Kerberos initialization (tabetha) |
---|
| 185 | .br |
---|
| 186 | Password for qjb@ATHENA.MIT.EDU: |
---|
| 187 | .br |
---|
| 188 | % |
---|
| 189 | .br |
---|
| 190 | |
---|
| 191 | .br |
---|
| 192 | % rkinit soup -p qjb.root -l local |
---|
| 193 | .br |
---|
| 194 | Kerberos initialization (soup): tickets will be owned by local |
---|
| 195 | .br |
---|
| 196 | Password for qjb.root@ATHENA.MIT.EDU: |
---|
| 197 | .br |
---|
| 198 | % |
---|
| 199 | |
---|
| 200 | .SH SEE ALSO |
---|
| 201 | rkinitd(8), kerberos(1), kerberos(3), kinit(1) |
---|
| 202 | |
---|
| 203 | .SH AUTHOR |
---|
| 204 | Emanuel Jay Berkenbilt (MIT-Project Athena) |
---|