diff options
author | matteo <matteo@FreeBSD.org> | 2006-03-05 15:45:38 +0000 |
---|---|---|
committer | matteo <matteo@FreeBSD.org> | 2006-03-05 15:45:38 +0000 |
commit | 00b7acda29699a9f2cfdb9ae73f96c2b54710067 (patch) | |
tree | 9279192e082dc481f52d3efdb4fdeea69fa653e3 /etc | |
parent | 1c3a29897cea8a0803d7107b20c8711d65f0dc91 (diff) | |
download | FreeBSD-src-00b7acda29699a9f2cfdb9ae73f96c2b54710067.zip FreeBSD-src-00b7acda29699a9f2cfdb9ae73f96c2b54710067.tar.gz |
Enhance loginfail: it will catch sshd, proftpd and su errors, as well as other programs
PR: conf/70973
Submitted by: Ryan Sommers" <ryans@gamersimpact.com>
Approved by: philip (mentor)
MFC after: 3 days
Diffstat (limited to 'etc')
-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 dd02a4e..d75f953 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;; |