Subject: Empty output from /etc/security
To: None <current-users@NetBSD.ORG>
From: Erik Bertelsen <>
List: current-users
Date: 10/02/1997 11:29:05
With recent updates to the /etc/security script and updates to
/etc/mtree/special, I have now come to a situation where the
security scripts runs  with generating any output -- at least
those days where various files in /etc have been updated.

When this happens, the following output is made from /etc/daily:

---------------extract begin--------------------------
Name  Mtu   Network       Address              Ipkts Ierrs    Opkts Oerrs
ep0   1500  <Link>        00:20:af:76:4b:10    39188     0    14241     0
ep0   1500  130.228.12/25 erik-be              39188     0    14241     0
lo0   32976 <Link>                                25     0       25     0
lo0   32976 127           localhost               25     0       25     0

Null message body; hope that's ok
------------------end of extract---------------------

and an empty message is being sent with the subject of daily security

I really don't like getting these empty messages every day, and after
thinking a bit about it, my proposal is:

   - /etc/daily collects the output from /etc/security in a temporary
   - if that file is empty, a message is printed on /etc/daily's output,
     and no mail message is being sent
   - if that file is non-empty, the contents is mailed under the subject
     of '<machine> daily security output' as it is today.

This will reduce the amount of messages being sent, while still making
a note (in daily's output) of the fact that there were not security
related messages.

Ideas? Suggestions?

After reading any reactions to this proposal, I'll probably file a PR
with or without a proposed patch depending on these reactions.

Erik Bertelsen