diff options
Diffstat (limited to 'usr.bin/keyinfo')
-rw-r--r-- | usr.bin/keyinfo/keyinfo.1 | 52 |
1 files changed, 30 insertions, 22 deletions
diff --git a/usr.bin/keyinfo/keyinfo.1 b/usr.bin/keyinfo/keyinfo.1 index 5fcae68..789d367 100644 --- a/usr.bin/keyinfo/keyinfo.1 +++ b/usr.bin/keyinfo/keyinfo.1 @@ -11,32 +11,39 @@ .Nm .Op Ar username .Sh DESCRIPTION -.Nm Keyinfo +.Nm takes an optional user name and displays the user\'s current sequence number and seed found in the S/Key database .Pa /etc/skeykeys . .Pp The command can be useful when generating a list of passwords for use on a field trip, by combining with the command -.Nm key +.Xr key 1 in the form: -.sp - > key \-n <number of passwords> `keyinfo`|lpr -.Sh EXAMPLE -Usage example: -.sp 0 - > keyinfo -.sp 0 - 98 ws91340 -.Sh ARGUMENTS -.Bl -tag -width indent -.It Ar username -The S/key user to display the information for. The default is -to display S/Key information on the user who invokes the command. +.Bd -literal -offset indent +key -n <number of passwords> `keyinfo` | lpr +.Ed +.Pp +The optional +.Ar username +argument specifies the S/Key user for whom to display the information. +The default is to display S/Key information +on the user who invokes the command. Only the superuser can ask for another user's key information. -.El +.Sh EXAMPLES +Usage example: +.Bd -literal -offset indent +$ keyinfo +.Ed +.Pp +This would produce the following output: +.Bd -literal -offset indent +98 ws91340 +.Ed .Sh DIAGNOSTICS -.Nm Keyinfo +The +.Nm +utility exits with status 0 if a key for the requested user has been found, else with status 1. .Sh SEE ALSO @@ -45,11 +52,12 @@ else with status 1. .Sh AUTHORS Original command by .An Phil Karn , -.An Neil M. Haller , +.An Neil M. Haller +and .An John S. Walden . Rewritten in Perl by -.ie t J\(:org \%Wunsch -.el Joerg Wunsch -so it can be made setuid, and the S/Key keys file can be read-protected +.An J\(:org \%Wunsch +so that it could be made setuid, with the S/Key keys file read-protected from the users. -Rewritten in C by Warner Losh. +Rewritten in C by +.An Warner Losh . |