[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

standards/123516: Daily Security Logs Not Reporting Failed Logins



>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