Skip site navigation (1)Skip section navigation (2)
Date:      Fri, 20 Oct 2000 07:10:47 -0700 (PDT)
From:      pdp@nl.demon.net
To:        freebsd-gnats-submit@FreeBSD.org
Subject:   conf/22150: /etc/periodic/daily/450.status-security ignores mail recipient config
Message-ID:  <20001020141047.A3F0237B686@hub.freebsd.org>

next in thread | raw e-mail | index | archive | help

>Number:         22150
>Category:       conf
>Synopsis:       /etc/periodic/daily/450.status-security ignores mail recipient config
>Confidential:   no
>Severity:       non-critical
>Priority:       medium
>Responsible:    freebsd-bugs
>State:          open
>Quarter:        
>Keywords:       
>Date-Required:
>Class:          sw-bug
>Submitter-Id:   current-users
>Arrival-Date:   Fri Oct 20 07:20:01 PDT 2000
>Closed-Date:
>Last-Modified:
>Originator:     Phil Pennock
>Release:        4.1.1-RELEASE
>Organization:
Thus PLC
>Environment:
GENERIC i386
Confirmed present via CVSWeb in current
>Description:
Setting $daily_output in /etc/periodic.conf changes daily output recipient.
/etc/periodic/daily/450.status-security runs /etc/security and sends
through "sendmail root", completely ignoring any administrative settings.
>How-To-Repeat:
Set something other than 'root' as the value of $daily_output in one of
the periodic configuration files; witness the security mail go somewhere
else.
>Fix:
Either use a new config variable, or apply:

--- 450.status-security.dist    Tue Sep 26 02:04:27 2000
+++ 450.status-security Fri Oct 20 16:10:12 2000
@@ -36,7 +36,7 @@
            *)
                    echo "    (output mailed separately)"
                    sh /etc/security $args 2>&1 |
-                       sendmail root && rc=0 || rc=3;;
+                       sendmail ${daily_output:-root} && rc=0 || rc=3;;
        esac;;

     *)  rc=0;;


>Release-Note:
>Audit-Trail:
>Unformatted:


To Unsubscribe: send mail to majordomo@FreeBSD.org
with "unsubscribe freebsd-bugs" in the body of the message




Want to link to this message? Use this URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?20001020141047.A3F0237B686>