From owner-cvs-all Tue Nov 27 9:53:20 2001 Delivered-To: cvs-all@freebsd.org Received: from mail.disney.com (mail.disney.com [204.128.192.15]) by hub.freebsd.org (Postfix) with ESMTP id 8B6CB37B419; Tue, 27 Nov 2001 09:53:11 -0800 (PST) Received: from Hermes10.corp.disney.com (hermes10.corp.disney.com [153.7.110.102]) by mail.disney.com (Switch-2.2.0/Switch-2.2.0) with ESMTP id fARHphf11251; Tue, 27 Nov 2001 09:51:43 -0800 (PST) Received: from [172.30.50.1] by hermes.corp.disney.com with ESMTP; Tue, 27 Nov 2001 09:52:20 -0800 Received: from plio.fan.fa.disney.com (plio.fan.fa.disney.com [153.7.118.2]) by pecos.fa.disney.com (8.11.3/8.11.3) with ESMTP id fARI0n326206; Tue, 27 Nov 2001 10:00:50 -0800 (PST) Received: from mercury.fan.fa.disney.com (mercury.fan.fa.disney.com [153.7.119.1]) by plio.fan.fa.disney.com (8.9.2/8.9.2) with ESMTP id JAA25745; Tue, 27 Nov 2001 09:53:04 -0800 (PST) (envelope-from Jim.Pirzyk@disney.com) Received: from [172.30.5.138] by mercury.fan.fa.disney.com; Tue, 27 Nov 2001 09:53:03 -0800 From: "Pirzyk, Jim" To: Mike Silbersack , Brian Somers Subject: Re: cvs commit: src/etc security Date: Tue, 27 Nov 2001 09:55:59 -0800 X-Mailer: KMail [version 1.0.28] Content-Type: text/plain Cc: Robert Watson , Gregory Neil Shapiro , , References: <20011127112119.K39142-100000@achilles.silby.com> In-Reply-To: <20011127112119.K39142-100000@achilles.silby.com> MIME-Version: 1.0 Message-Id: <01112709562904.35830@rerun> Content-Transfer-Encoding: 8bit Sender: owner-cvs-all@FreeBSD.ORG Precedence: bulk List-ID: List-Archive: (Web Archive) List-Help: (List Instructions) List-Subscribe: List-Unsubscribe: X-Loop: FreeBSD.ORG On Tue, 27 Nov 2001, Mike Silbersack wrote: > Ok, I decided to look most at how the daily run handles its output and > emulate that approach. This now fixes the To: header, but I've managed to > break the hostname expansion in the Subject. Can anyone point me as to > what's wrong in the patches below? Use "" instead of '' in the mail -s line and then the $host variable will be expanded. - JimP > > Thanks, > > Mike "Silby" Silbersack > > --- /usr/src/etc/security Tue Nov 27 11:08:21 2001 > +++ /etc/security Tue Nov 27 11:13:35 2001 > @@ -58,8 +58,6 @@ > yesterday=`date -v-1d "+%b %e "` > > host=`hostname` > -[ $sflag = FALSE ] && echo "To: root@${host}" > -[ $sflag = FALSE ] && echo "Subject: ${host} security check output" > > umask 027 > > --- /usr/src/etc/periodic/daily/450.status-security Wed Jun 6 14:24:44 2001 > +++ /etc/periodic/daily/450.status-security Tue Nov 27 11:21:52 2001 > @@ -36,8 +36,10 @@ > >$daily_status_security_output 2>&1;; > *) > echo " (output mailed separately)" > + host=`hostname` > + export host > sh /etc/security $args 2>&1 | > - sendmail $daily_status_security_output;; > + mail -s '$host security check output' $daily_status_security_output;; > esac;; > esac;; -- --- @(#) $Id: dot.signature,v 1.10 2001/05/17 23:38:49 Jim.Pirzyk Exp $ __o Jim.Pirzyk@disney.com ------------- pirzyk@freebsd.org _'\<,_ Senior Systems Engineer, Walt Disney Feature Animation (*)/ (*) To Unsubscribe: send mail to majordomo@FreeBSD.org with "unsubscribe cvs-all" in the body of the message