diff options
author | remko <remko@FreeBSD.org> | 2007-02-23 21:42:54 +0000 |
---|---|---|
committer | remko <remko@FreeBSD.org> | 2007-02-23 21:42:54 +0000 |
commit | a713b8f23225d137db4442f1da094bfdffb2879a (patch) | |
tree | 365662515d3720d7d55ae28fc1692bdf92a2541c /etc/periodic | |
parent | 768807b57d20377e0a941786e4cc67156d76f448 (diff) | |
download | FreeBSD-src-a713b8f23225d137db4442f1da094bfdffb2879a.zip FreeBSD-src-a713b8f23225d137db4442f1da094bfdffb2879a.tar.gz |
Only match on log messages containing fail,invalid,
bad or illegal. This prevents matching on systems that
have a name that matches the query.
PR: conf/107560
Submitted by: Christian Laursen <cfsl at pil dot dk>
MFC after: 3 days
Approved by: imp (mentor)
Diffstat (limited to 'etc/periodic')
-rwxr-xr-x | etc/periodic/security/800.loginfail | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/etc/periodic/security/800.loginfail b/etc/periodic/security/800.loginfail index 6a26f7d..38aeb02 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 | egrep -ia "^$yesterday.*(fail|invalid|bad|illegal)" | + n=$(catmsgs | egrep -ia "^$yesterday.*: .* (fail|invalid|bad|illegal)" | tee /dev/stderr | wc -l) [ $n -gt 0 ] && rc=1 || rc=0;; *) rc=0;; |