Now this is a separate program.
This commit is contained in:
parent
1eba6a6cc9
commit
f2ad06ea17
@ -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
|
@ -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}'
|
Loading…
Reference in New Issue
Block a user