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
This commit is contained in:
parent
1c3a29897c
commit
00b7acda29
@ -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;;
|
||||
|
Loading…
Reference in New Issue
Block a user