Now this is a separate program.

This commit is contained in:
christos 1997-06-22 18:44:37 +00:00
parent 1eba6a6cc9
commit f2ad06ea17
2 changed files with 0 additions and 38 deletions

View File

@ -1,18 +0,0 @@
.\" $NetBSD: skeyinfo.1,v 1.2 1996/09/19 19:44:35 thorpej Exp $
.\"
.Dd 9 June 1994
.Dt SKEYINFO 1
.Os NetBSD 4
.Sh NAME
.Nm skeyinfo
.Nd obtain the next S/Key challenge for a user
.Sh SYNOPSIS
.Nm skeyinfo
.Op Ar user
.Sh DESCRIPTION
.Nm skeyinfo
prints out the next S/Key challenge for the specified user or for the
current user if no user is specified.
.Sh SEE ALSO
.Xr skeyinit 1 ,
.Xr skey 1

View File

@ -1,20 +0,0 @@
#!/bin/sh
#
# $NetBSD: skeyinfo.sh,v 1.2 1996/09/19 19:44:36 thorpej Exp $
#
# search /etc/skeykeys for the skey string for
# this user OR user specified in 1st parameter
if [ -z "$1" ]
then
WHO=`/usr/bin/whoami`
else
WHO=$1
fi
if [ -f /etc/skeykeys ]
then
SKEYINFO=`/usr/bin/grep "^$WHO[ ]" /etc/skeykeys`
else
SKEYINFO=`cat /etc/skeykeys|/usr/bin/grep "^$WHO[ ]"`
fi
echo $SKEYINFO|/usr/bin/awk '{print $2-1,$3}'