[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
standards/123516: Daily Security Logs Not Reporting Failed Logins
- To: freebsd-gnats-submit_(_at_)_FreeBSD_(_dot_)_org
- Subject: standards/123516: Daily Security Logs Not Reporting Failed Logins
- From: Will <disposable_freebsd_(_at_)_therag_(_dot_)_org>
- Date: Thu, 8 May 2008 06:44:02 GMT
- Cc:
- Resent-date: Thu, 8 May 2008 06:50:01 GMT
- Resent-from: FreeBSD-gnats-submit_(_at_)_FreeBSD_(_dot_)_org (GNATS Filer)
- Resent-message-id: <200805080650_(_dot_)_m486o1DV096114_(_at_)_freefall_(_dot_)_freebsd_(_dot_)_org>
- Resent-reply-to: FreeBSD-gnats-submit_(_at_)_FreeBSD_(_dot_)_org, Will <disposable_freebsd_(_at_)_therag_(_dot_)_org>
- Resent-to: freebsd-standards_(_at_)_FreeBSD_(_dot_)_org
>Number: 123516
>Category: standards
>Synopsis: Daily Security Logs Not Reporting Failed Logins
>Confidential: no
>Severity: non-critical
>Priority: medium
>Responsible: freebsd-standards
>State: open
>Quarter:
>Keywords:
>Date-Required:
>Class: sw-bug
>Submitter-Id: current-users
>Arrival-Date: Thu May 08 06:50:01 UTC 2008
>Closed-Date:
>Last-Modified:
>Originator: Will
>Release: 7.0
>Organization:
>Environment:
FreeBSD Dogbert.NameBrandHandle.Net 7.0-RELEASE FreeBSD 7.0-RELEASE #0: Sun Feb 24 19:59:52 UTC 2008 root_(_at_)_logan_(_dot_)_cse_(_dot_)_buffalo_(_dot_)_edu:/usr/obj/usr/src/sys/GENERIC i386
>Description:
My daily mails have stoped reporting failed logins when there are failed logins in /etc/auth.log
I have traced this down as a formatting issue in the yestarday variable of /etc/periodic/800.loginfail
When egrep runs it is using the yesterday variable which reads: "May 7 "
The log files are being written to start "May 7 "
This causes the egrep to fail, thus not displaying any logs
>How-To-Repeat:
When I look at the syntax of the yestarday variable date command, it outputs the correct format when run from the command line.
/etc/periodic/security/800.loginfail:
yesterday=`date -v-1d "+%b %e"`
-------------------
Script Output: "May 7"
Command Line Output: "May 7"
>Fix:
>Release-Note:
>Audit-Trail:
>Unformatted:
_______________________________________________
freebsd-standards_(_at_)_freebsd_(_dot_)_org mailing list
http://lists.freebsd.org/mailman/listinfo/freebsd-standards
To unsubscribe, send any mail to "freebsd-standards-unsubscribe_(_at_)_freebsd_(_dot_)_org"
Visit your host, monkey.org