On Tue, Jan 14, 2003 at 10:27:12PM -0500, Ray Curtis wrote: > How about just adding something simple to /etc/profile such as: > > logcount=`/usr/bin/w | /bin/grep -c $LOGNAME` > if [ $logcount = 8 ] ; then > echo "You have tried to login more than eight times." | /bin/mail -s "L\ogin >Error" root > logout > fi
Does not do it. /etc/profile gets executed when the user successfully logs in. The proposed scenario is to catch failed login attempts and disable the account after a certain number of them. Cheers, -- Javier Gostling Av. Kennedy 5757, of. 1502 Ingeniero de Sistemas Las Condes, Santiago, Chile Virtualia S.A. Fono: +56 (2) 202-6264 x 130 [EMAIL PROTECTED] Fax: +56 (2) 342-8763
msg102439/pgp00000.pgp
Description: PGP signature