summaryrefslogtreecommitdiffstats
path: root/etc
diff options
context:
space:
mode:
authormatteo <matteo@FreeBSD.org>2006-03-05 15:45:38 +0000
committermatteo <matteo@FreeBSD.org>2006-03-05 15:45:38 +0000
commit00b7acda29699a9f2cfdb9ae73f96c2b54710067 (patch)
tree9279192e082dc481f52d3efdb4fdeea69fa653e3 /etc
parent1c3a29897cea8a0803d7107b20c8711d65f0dc91 (diff)
downloadFreeBSD-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-xetc/periodic/security/800.loginfail2
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;;
OpenPOWER on IntegriCloud