FreeBSD Bugzilla – Attachment 88266 Details for
Bug 125041
[patch] periodic(8) new file: /etc/periodic/security/810.loginok
Home
|
New
|
Browse
|
Search
|
[?]
|
Reports
|
Help
|
New Account
|
Log In
Remember
[x]
|
Forgot Password
Login:
[x]
file.txt
file.txt (text/plain), 815 bytes, created by
a
on 2008-06-27 10:20:05 UTC
(
hide
)
Description:
file.txt
Filename:
MIME Type:
Creator:
a
Created:
2008-06-27 10:20:05 UTC
Size:
815 bytes
patch
obsolete
>#!/bin/sh - ># > ># ># Show succesful logins ># > ># If there is a global system configuration file, suck it in. ># >if [ -r /etc/defaults/periodic.conf ] >then > . /etc/defaults/periodic.conf > source_periodic_confs >fi > >LOG="${daily_status_security_logdir}" > >yesterday=`date -v-1d "+%b %e "` > >catmsgs() { > find ${LOG} -name 'auth.log.*' -mtime -2 | > sort -t. -r -n -k 2,2 | > while read f > do > case $f in > *.gz) zcat -f $f;; > *.bz2) bzcat -f $f;; > esac > done > [ -f ${LOG}/auth.log ] && cat $LOG/auth.log >} > >case "$daily_status_security_loginok_enable" in > [Yy][Ee][Ss]) > echo "" > echo "${host} succesful logins:" > n=$(catmsgs | grep -ia "^$yesterday.*[Aa]ccept" | > tee /dev/stderr | wc -l) > [ $n -gt 0 ] && rc=1 || rc=0;; > *) rc=0;; >esac > >exit $rc
You cannot view the attachment while viewing its details because your browser does not support IFRAMEs.
View the attachment on a separate page
.
View Attachment As Raw
Actions:
View
Attachments on
bug 125041
: 88266