1
0
mirror of https://git.FreeBSD.org/src.git synced 2024-12-16 10:20:30 +00:00
freebsd/usr.bin/keyinfo/keyinfo.sh
Guido van Rooij 110af3d672 1) Added s/key support .
2  Added optional excessive login logging.
3) Added login acces control on a per host/tty base.
4) See skey(1) for skey descriptions and src/usr.bin/login/README
  for the logging and access control features.

-Guido
1994-05-19 18:13:11 +00:00

11 lines
258 B
Bash

#!/bin/sh
# search /etc/skeykeys for the skey string for this user OR user specified
# in 1st parameter
PATH=/bin:/usr/bin
test -f /etc/skeykeys && {
WHO=${1-`id | sed 's/^[^(]*(\([^)]*\).*/\1/'`}
awk '/^'${WHO}'[ ]/ { print $2-1, $3 }' /etc/skeykeys
}