Nope. Try this script and use it as the basis for making some kind of
unlock script. However, I would be curious as to why someone exeeded
the failed login limit.
:
# @(#) lock+bagels. Reports login and tty C2 locks.
# by Jeff Liebermann 03/12/95
#
# test for user login locks
cd /tcb/files/auth
users=`find . -type f -print` # get list of users.
for i in $users # for each user.
do
if (grep ':u_lock:' $i > /dev/null ) # any acct locks?
then # tell someone
echo "Acct: `basename $i` is locked"
fi
if (grep ':u_type=retired:' $i > /dev/null ) # is the account
retired?
then # tell someone
echo "Acct: `basename $i` is retired"
fi
done
:
# test for tty locks?
if (grep ':t_lock:' /etc/auth/system/ttys > /dev/null)
then
# get the ttys with the locks
echo "Terminals:`grep ':t_lock:' /etc/auth/system/ttys \
| cut -d: -f1`\nare locked"
fi
--
Jeff Liebermann 150 Felker St #D Santa Cruz CA 95060
(831)421-6491 pgr (831)426-1240 fax (831)336-2558 home
http://www.LearnByDestroying.com WB6SSY
je...@comix.santa-cruz.ca.us je...@cruzio.com