summaryrefslogtreecommitdiffstats
path: root/usr.bin/keyinfo/keyinfo.1
diff options
context:
space:
mode:
authorjoerg <joerg@FreeBSD.org>1996-04-26 21:35:11 +0000
committerjoerg <joerg@FreeBSD.org>1996-04-26 21:35:11 +0000
commit651af4a301f28f59b7174fc381c01258bdbeebff (patch)
treeaa8fce9741e46086cc0e0b5aee858d3ff9024a87 /usr.bin/keyinfo/keyinfo.1
parent2d430f5746ff743957a88b3d67c2cb037327ad56 (diff)
downloadFreeBSD-src-651af4a301f28f59b7174fc381c01258bdbeebff.zip
FreeBSD-src-651af4a301f28f59b7174fc381c01258bdbeebff.tar.gz
Implement keyinfo(1) as a setuid Perl script, so /etc/skeykeys can
be made mode 0600. Pointed out by: kieber@sax.de (Ulf Kieber) Reviewed by: pst
Diffstat (limited to 'usr.bin/keyinfo/keyinfo.1')
-rw-r--r--usr.bin/keyinfo/keyinfo.120
1 files changed, 15 insertions, 5 deletions
diff --git a/usr.bin/keyinfo/keyinfo.1 b/usr.bin/keyinfo/keyinfo.1
index b12aa96..9ddea83 100644
--- a/usr.bin/keyinfo/keyinfo.1
+++ b/usr.bin/keyinfo/keyinfo.1
@@ -1,9 +1,10 @@
.ll 6i
.pl 10.5i
-.\" @(#)keyinfo.1 1.1 (Bellcore) 7/20/93
+.\" from: @(#)keyinfo.1 1.1 (Bellcore) 7/20/93
+.\" $Id$
.\"
.lt 6.0i
-.TH KEYINFO 1 "20 July 1993"
+.TH KEYINFO 1 "26 April 1996"
.AT 3
.SH NAME
keyinfo \- display current S/Key sequence number and seed
@@ -19,12 +20,12 @@ on a field trip, by combining with the command
.I key
in the form:
.sp
- >key \-n <number of passwords to print> `keyinfo`|lpr
+ > key \-n <number of passwords> `keyinfo`|lpr
.SH EXAMPLE
.sh
Usage example:
.sp 0
- >keyinfo
+ > keyinfo
.sp 0
0098 ws91340
.LP
@@ -33,8 +34,17 @@ Usage example:
.B 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.
+.SH DIAGNOSTICS
+.I keyinfo
+exits with status 0 if a key for the requested user has been found,
+else with status 1.
.SH SEE ALSO
.BR keyinit(1),
.BR key(1)
.SH AUTHOR
-Command by Phil Karn, Neil M. Haller, John S. Walden
+Original command by Phil Karn, Neil M. Haller, 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
+from the users.
OpenPOWER on IntegriCloud