Clean up deleted files.
This commit is contained in:
parent
d4fda9aec2
commit
08063daef3
@ -1,50 +0,0 @@
|
||||
#!/bin/sh
|
||||
# $Id: keyaudit,v 1.2 1994/05/27 22:06:09 deraadt Exp $
|
||||
# This script will look thru the skeykeys file for
|
||||
# people with sequence numbers less then LOWLIMIT=12
|
||||
# and send them e-mail remindes to use keyinit soon
|
||||
#
|
||||
|
||||
AWK=/usr/bin/awk
|
||||
GREP=/usr/bin/grep
|
||||
ECHO=/bin/echo
|
||||
KEYDB=/etc/skeykeys
|
||||
LOWLIMIT=12
|
||||
ADMIN=root
|
||||
SUBJECT="Reminder: Run keyinit"
|
||||
HOST=`/bin/hostname`
|
||||
|
||||
|
||||
if [ "$1" != "" ]
|
||||
then
|
||||
LOWLIMIT=$1
|
||||
fi
|
||||
|
||||
|
||||
# an skeykeys entry looks like
|
||||
# jsw 0076 la13079 ba20a75528de9d3a
|
||||
# the sequence number is the second entry
|
||||
#
|
||||
|
||||
for i in `$AWK '{print $1}' $KEYDB`
|
||||
do
|
||||
SEQ=`$GREP "^$i[ ]" $KEYDB | $AWK '{print $2}'`
|
||||
if [ $SEQ -lt $LOWLIMIT ]
|
||||
then
|
||||
KEY=`$GREP "^$i[ ]" $KEYDB | $AWK '{print $3}'`
|
||||
if [ $SEQ -lt 3 ]
|
||||
then
|
||||
SUBJECT="IMPORTANT action required"
|
||||
fi
|
||||
(
|
||||
$ECHO "You are nearing the end of your current S/Key sequence for account $i"
|
||||
$ECHO "on system $HOST."
|
||||
$ECHO ""
|
||||
$ECHO "Your S/key sequence number is now $SEQ. When it reaches zero you"
|
||||
$ECHO "will no longer be able to use S/Key to login into the system. "
|
||||
$ECHO " "
|
||||
$ECHO "Type \"keyinit -s\" to reinitialize your sequence number."
|
||||
$ECHO ""
|
||||
) | /usr/bin/Mail -s "$SUBJECT" $i $ADMIN
|
||||
fi
|
||||
done
|
@ -1,18 +0,0 @@
|
||||
#!/bin/sh
|
||||
# $Id: keyinfo,v 1.1 1994/05/24 06:47:55 deraadt 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