home | help
KEYINFO(1)		     General Commands Manual		      KEYINFO(1)

NAME
     keyinfo -- display current S/Key sequence number and seed

SYNOPSIS
     keyinfo [username]

DESCRIPTION
     keyinfo  takes  an  optional  user name and displays the user's current se-
     quence number and seed found in the S/Key database /etc/skeykeys.

     The command can be useful when generating a list of passwords for use on  a
     field trip, by combining with the command key(1) in the form:

	   key -n  <number of passwords> `keyinfo` | lpr

     The optional 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.

EXAMPLES
     Usage example:

	   $ keyinfo

     This would produce the following output:

	   98 ws91340

DIAGNOSTICS
     The keyinfo utility exits with status 0 if a key for the requested user has
     been found, else with status 1.

SEE ALSO
     key(1), keyinit(1)

AUTHORS
     Original command by Phil Karn, Neil M. Haller and John S. Walden.	 Rewrit-
     ten  in Perl by Jorg 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.

FreeBSD 4.5			 April 26, 1996 		      KEYINFO(1)

home | help