diff options
author | Remko Lodder <remko@FreeBSD.org> | 2007-02-23 21:42:54 +0000 |
---|---|---|
committer | Remko Lodder <remko@FreeBSD.org> | 2007-02-23 21:42:54 +0000 |
commit | 217d9e4862c718d4bc3e936cd245ea56c2aa21cc (patch) | |
tree | 365662515d3720d7d55ae28fc1692bdf92a2541c /etc/periodic | |
parent | 6c117974983d0fcfb63319a653bd0628fc651c53 (diff) | |
download | src-217d9e4862c718d4bc3e936cd245ea56c2aa21cc.tar.gz src-217d9e4862c718d4bc3e936cd245ea56c2aa21cc.zip |
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)
Notes
Notes:
svn path=/head/; revision=166928
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 6a26f7d89c76..38aeb021af4e 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;; |