From owner-freebsd-bugs Fri Oct 20 7:20: 6 2000 Delivered-To: freebsd-bugs@freebsd.org Received: from freefall.freebsd.org (freefall.FreeBSD.org [216.136.204.21]) by hub.freebsd.org (Postfix) with ESMTP id DB05937B4E5 for ; Fri, 20 Oct 2000 07:20:01 -0700 (PDT) Received: (from gnats@localhost) by freefall.freebsd.org (8.9.3/8.9.2) id HAA10555; Fri, 20 Oct 2000 07:20:01 -0700 (PDT) (envelope-from gnats@FreeBSD.org) Received: by hub.freebsd.org (Postfix, from userid 32767) id A3F0237B686; Fri, 20 Oct 2000 07:10:47 -0700 (PDT) Message-Id: <20001020141047.A3F0237B686@hub.freebsd.org> Date: Fri, 20 Oct 2000 07:10:47 -0700 (PDT) From: pdp@nl.demon.net To: freebsd-gnats-submit@FreeBSD.org X-Send-Pr-Version: www-1.0 Subject: conf/22150: /etc/periodic/daily/450.status-security ignores mail recipient config Sender: owner-freebsd-bugs@FreeBSD.ORG Precedence: bulk X-Loop: FreeBSD.org >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