Annotation of src/usr.bin/skeyinit/skeyinit.1, Revision 1.35
1.35 ! sobrado 1: .\" $OpenBSD: skeyinit.1,v 1.34 2007/05/31 19:20:16 jmc Exp $
1.1 deraadt 2: .\" $NetBSD: skeyinit.1,v 1.4 1995/07/07 22:24:09 jtc Exp $
3: .\" @(#)skeyinit.1 1.1 10/28/93
4: .\"
1.35 ! sobrado 5: .Dd $Mdocdate: May 31 2007 $
1.1 deraadt 6: .Dt SKEYINIT 1
1.8 michaels 7: .Os
1.1 deraadt 8: .Sh NAME
1.7 millert 9: .Nm skeyinit
1.14 aaron 10: .Nd change password or add user to S/Key authentication system
1.1 deraadt 11: .Sh SYNOPSIS
12: .Nm skeyinit
1.31 jmc 13: .Bk -words
14: .Op Fl CDErsx
1.21 millert 15: .Op Fl a Ar auth-type
1.9 millert 16: .Op Fl n Ar count
1.35 ! sobrado 17: .Op Fl md4 | md5 | rmd160 | sha1
1.1 deraadt 18: .Op Ar user
1.31 jmc 19: .Ek
1.1 deraadt 20: .Sh DESCRIPTION
1.16 aaron 21: .Nm
1.29 jmc 22: initializes the system so you can use S/Key one-time passwords to log in.
1.27 otto 23: The program will ask you to enter a secret passphrase which is used by
24: .Xr skey 1
1.33 jmc 25: to generate one-time passwords:
1.17 aaron 26: enter a phrase of several words in response.
27: After the S/Key database
1.29 jmc 28: has been updated you can log in using either your regular password
1.7 millert 29: or using S/Key one-time passwords.
30: .Pp
1.16 aaron 31: .Nm
1.27 otto 32: requires you to type a secret passphrase, so it should be used
1.16 aaron 33: only on a secure terminal.
34: For example, on the console of a
35: workstation or over an encrypted network session.
36: If you are using
37: .Nm
1.7 millert 38: while logged in over an untrusted network, follow the instructions
39: given below with the
40: .Fl s
41: option.
42: .Pp
43: Before initializing an S/Key entry, the user must authenticate
1.16 aaron 44: using either a standard password or an S/Key challenge.
1.33 jmc 45: To use a one-time password for initial authentication,
46: .Ic skeyinit -a skey
47: can be used.
1.16 aaron 48: The user will then be presented with the standard
1.7 millert 49: S/Key challenge and allowed to proceed if it is correct.
1.18 aaron 50: .Pp
1.29 jmc 51: .Nm
1.28 otto 52: prints a sequence number and a one-time password.
1.31 jmc 53: This password can't be used to log in; one-time passwords should be
1.28 otto 54: generated using
55: .Xr skey 1
56: first.
57: The one-time password printed by
58: .Nm
59: can be used to verify if the right passphrase has been given to
60: .Xr skey 1 .
61: The one-time password with the corresponding sequence number printed by
62: .Xr skey 1
63: should match the one printed by
64: .Nm .
65: .Pp
1.18 aaron 66: The options are as follows:
1.19 aaron 67: .Bl -tag -width Ds
1.31 jmc 68: .It Fl a Ar auth-type
1.33 jmc 69: Before an S/Key entry can be initialised,
70: the user must authenticate themselves to the system.
71: This option allows the authentication type to be specified, such as
1.31 jmc 72: .Dq krb5 ,
73: .Dq passwd ,
74: or
75: .Dq skey .
1.21 millert 76: .It Fl C
77: Converts from the old-style
78: .Pa /etc/skeykeys
79: database to a new-style database where user records are stored in the
80: .Pa /etc/skey
81: directory.
82: If an entry already exists in the new-style database it will not
83: be overwritten.
84: .It Fl D
85: Disables access to the S/Key database.
86: Only the superuser may use the
87: .Fl D
88: option.
89: .It Fl E
90: Enables access to the S/Key database.
91: Only the superuser may use the
92: .Fl E
93: option.
1.31 jmc 94: .It Fl md4 | md5 | rmd160 | sha1
95: Selects the hash algorithm:
96: MD4, MD5, RMD-160 (160-bit Ripe Message Digest),
97: or SHA1 (NIST Secure Hash Algorithm Revision 1).
98: .It Fl n Ar count
99: Start the
100: .Nm skey
101: sequence at
102: .Ar count
103: (default is 100).
1.23 millert 104: .It Fl r
105: Removes the user's S/Key entry.
1.1 deraadt 106: .It Fl s
1.33 jmc 107: Secure mode.
108: The user is expected to have already used a secure
1.16 aaron 109: machine to generate the first one-time password.
110: Without the
1.7 millert 111: .Fl s
1.12 aaron 112: option the system will assume you are directly connected over secure
1.27 otto 113: communications and prompt you for your secret passphrase.
1.16 aaron 114: The
1.7 millert 115: .Fl s
116: option also allows one to set the seed and count for complete
1.16 aaron 117: control of the parameters.
1.33 jmc 118: .Pp
1.24 millert 119: When the
120: .Fl s
121: option is specified,
122: .Nm
123: will try to authenticate the user via S/Key, instead of the default listed in
124: .Pa /etc/login.conf .
125: If a user has no entry in the S/Key database, an alternate authentication
126: type must be specified via the
127: .Fl a
1.33 jmc 128: option
129: (see above).
1.24 millert 130: Please note that entering a password or passphrase in plain text
131: defeats the purpose of using
132: .Dq secure
133: mode.
1.33 jmc 134: .Pp
135: You can use
136: .Ic skeyinit -s
137: in combination with the
138: .Nm skey
139: command to set the seed and count if you do not like the defaults.
140: To do this run
141: .Ic skeyinit -s
142: in one window and put in your count and seed, then run
143: .Xr skey 1
144: in another window to generate the correct 6 English words for that
145: count and seed.
146: You can then "cut-and-paste" or type the words into the
147: .Nm
148: window.
1.21 millert 149: .It Fl x
1.31 jmc 150: Displays one-time passwords in hexadecimal instead of ASCII.
1.1 deraadt 151: .It Ar user
1.17 aaron 152: The username to be changed/added.
153: By default the current user is operated on.
1.18 aaron 154: .El
1.26 jmc 155: .Sh FILES
156: .Bl -tag -width /etc/login.conf -compact
157: .It Pa /etc/login.conf
158: file containing authentication types
159: .It Pa /etc/skey
160: directory containing user entries for S/Key
161: .El
1.28 otto 162: .Sh EXAMPLES
163: .Bd -literal
1.29 jmc 164: $ skeyinit
165: Reminder - Only use this method if you are directly connected
166: or have an encrypted channel. If you are using telnet,
167: hit return now and use skeyinit -s.
1.31 jmc 168: Password: \*(Ltenter your regular password here\*(Gt
1.29 jmc 169: [Updating user with md5]
170: Old seed: [md5] host12377
1.31 jmc 171: Enter new secret passphrase: \*(Lttype a new passphrase here\*(Gt
172: Again secret passphrase: \*(Ltagain\*(Gt
1.29 jmc 173: ID user skey is otp-md5 100 host12378
174: Next login password: CITE BREW IDLE CAIN ROD DOME
175: $ otp-md5 -n 3 100 host12378
176: Reminder - Do not use this program while logged in via telnet.
1.31 jmc 177: Enter secret passphrase: \*(Lttype your passphrase here\*(Gt
1.29 jmc 178: 98: WERE TUG EDDY GEAR GILL TEE
179: 99: NEAR HA TILT FIN LONG SNOW
180: 100: CITE BREW IDLE CAIN ROD DOME
1.28 otto 181: .Ed
182: .Pp
183: The one-time password for the next login will have sequence number 99.
1.11 millert 184: .Sh ERRORS
1.20 millert 185: .Bl -tag -compact -width "skey disabled"
186: .It "skey disabled"
1.21 millert 187: .Pa /etc/skey
1.25 cloder 188: does not exist or is not accessible by the user.
1.21 millert 189: The superuser may enable
190: .Nm
191: via the
192: .Fl E
193: flag.
1.20 millert 194: .El
1.1 deraadt 195: .Sh SEE ALSO
1.22 millert 196: .Xr skey 1 ,
1.28 otto 197: .Xr skeyaudit 1 ,
198: .Xr skeyinfo 1 ,
1.32 jmc 199: .Xr skey 5 ,
1.29 jmc 200: .Xr skeyprune 8
1.1 deraadt 201: .Sh AUTHORS
1.21 millert 202: Phil Karn, Neil M. Haller, John S. Walden, Scott Chasin, Todd Miller