From fe468fe9c01ebd2a8f242b9411f40b30b601d8a4 Mon Sep 17 00:00:00 2001 From: Matteo Riondato Date: Sun, 5 Mar 2006 15:45:38 +0000 Subject: [PATCH] Enhance loginfail: it will catch sshd, proftpd and su errors, as well as other programs PR: conf/70973 Submitted by: Ryan Sommers" Approved by: philip (mentor) MFC after: 3 days --- etc/periodic/security/800.loginfail | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/etc/periodic/security/800.loginfail b/etc/periodic/security/800.loginfail index dd02a4e4e791..d75f95370bf7 100755 --- a/etc/periodic/security/800.loginfail +++ b/etc/periodic/security/800.loginfail @@ -59,7 +59,7 @@ case "$daily_status_security_loginfail_enable" in [Yy][Ee][Ss]) echo "" echo "${host} login failures:" - n=$(catmsgs | grep -ia "^$yesterday.*fail" | + n=$(catmsgs | grep -ia "^$yesterday.*(fail|invalid|bad|illegal)" | tee /dev/stderr | wc -l) [ $n -gt 0 ] && rc=1 || rc=0;; *) rc=0;;