| Summary: | /etc/periodic/daily/450.status-security ignores mail recipient config | ||
|---|---|---|---|
| Product: | Base System | Reporter: | Phil Pennock <pdp> |
| Component: | conf | Assignee: | freebsd-bugs (Nobody) <bugs> |
| Status: | Closed FIXED | ||
| Severity: | Affects Only Me | ||
| Priority: | Normal | ||
| Version: | 4.1.1-RELEASE | ||
| Hardware: | Any | ||
| OS: | Any | ||
> >Number: 22150 > >Category: conf > >Synopsis: /etc/periodic/daily/450.status-security ignores mail recipient config I don't think that $daily_output is the right variable to use here. How about introducing a $security_output variable and documenting it in rc.conf.5 ? Cheers. -- Brian <brian@Awfulhak.org> <brian@[uk.]FreeBSD.org> <http://www.Awfulhak.org> <brian@[uk.]OpenBSD.org> Don't _EVER_ lose your sense of humour ! On 2000-10-20 at 08:37 -0700, Brian Somers wrote: > > >Number: 22150 > > >Category: conf > > >Synopsis: /etc/periodic/daily/450.status-security ignores mail recipient config > > I don't think that $daily_output is the right variable to use here. > How about introducing a $security_output variable and documenting it > in rc.conf.5 ? Whatever. That's why I suggested in the first line of the Fix section: "Either use a new config variable, or apply:" -- Phil Pennock <pdp@nl.demon.net> <Phil.Pennock@thus.net> Demon Internet Nederland -- Network Operations Centre -- Systems Administrator Libertes philosophica. Sales: +31 20 422 20 00 Support: 0800 33 6666 8 State Changed From-To: open->closed There's now a $daily_status_security_output periodic.conf variable. The change will be brought into -current in about 10 days. |
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. Fix: Either use a new config variable, or apply: *) rc=0;;--TQP0Y6H2TI0Pc8FNcVY8drKDRghdNgXqv94llOWk4m2Xb8jL Content-Type: text/plain; name="file.diff" Content-Transfer-Encoding: 7bit Content-Disposition: attachment; filename="file.diff" --- 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;; 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.