Date: Tue, 15 Dec 1998 15:03:23 +0200 (EET) From: Heikki Suonsivu <hsu@clinet.fi> To: FreeBSD-gnats-submit@FreeBSD.ORG Subject: bin/9091: daily/weekly/monthly/security strip hostname Message-ID: <199812151303.PAA20298@katiska.clinet.fi>
index | next in thread | raw e-mail
>Number: 9091
>Category: bin
>Synopsis: daily/weekly/monthly/security strip hostname
>Confidential: no
>Severity: serious
>Priority: medium
>Responsible: freebsd-bugs
>State: open
>Quarter:
>Keywords:
>Date-Required:
>Class: change-request
>Submitter-Id: current-users
>Arrival-Date: Tue Dec 15 05:10:00 PST 1998
>Last-Modified:
>Originator: Heikki Suonsivu
>Organization:
Clinet, Espoo, Finland
>Release: FreeBSD 2.2.7-STABLE i386
>Environment:
-stable.
>Description:
daily, weekly, monthly and security strip domain part out of hostname.
This causes a mess when there are lots of hosts being managed. I get some
10 daily/security reports from "www" (.company.{com,fi}) and 10
"central-gw" (.town.fi) and so on. In particular this makes security
auditing difficult when building automatic systems to watch daily stuff and
summarize them to avoid reading > 200 mails which all say "everything is
fine", as actual host has to be parsed from Received lines.
>How-To-Repeat:
Manage lots of FreeBSD computers.
>Fix:
Index: daily
===================================================================
RCS file: /usr/CVS/src/etc/Attic/daily,v
retrieving revision 1.21.2.4
diff -c -r1.21.2.4 daily
*** daily 1998/09/13 23:10:08 1.21.2.4
--- daily 1998/10/14 12:46:28
***************
*** 4,10 ****
# @(#)daily 5.12 (Berkeley) 5/24/91
#
PATH=/bin:/usr/bin:/sbin:/usr/sbin
! host=`hostname -s`
echo "Subject: $host daily run output"
bak=/var/backups
--- 4,10 ----
# @(#)daily 5.12 (Berkeley) 5/24/91
#
PATH=/bin:/usr/bin:/sbin:/usr/sbin
! host=`hostname`
echo "Subject: $host daily run output"
bak=/var/backups
Index: weekly
===================================================================
RCS file: /usr/CVS/src/etc/Attic/weekly,v
retrieving revision 1.17.2.2
diff -c -r1.17.2.2 weekly
*** weekly 1998/01/10 00:06:55 1.17.2.2
--- weekly 1998/12/15 12:54:27
***************
*** 6,12 ****
PATH=/bin:/sbin:/usr/sbin:/usr/bin:/usr/libexec
export PATH
! host=`hostname -s`
echo "Subject: $host weekly run output"
#echo ""
--- 6,12 ----
PATH=/bin:/sbin:/usr/sbin:/usr/bin:/usr/libexec
export PATH
! host=`hostname`
echo "Subject: $host weekly run output"
#echo ""
Index: monthly
===================================================================
RCS file: /usr/CVS/src/etc/Attic/monthly,v
retrieving revision 1.6.2.2
diff -c -r1.6.2.2 monthly
*** monthly 1998/09/13 23:10:08 1.6.2.2
--- monthly 1998/12/15 12:54:20
***************
*** 5,11 ****
#
PATH=/bin:/usr/bin:/sbin:/usr/sbin
! host=`hostname -s`
echo "Subject: $host monthly run output"
W=/var/log/wtmp
--- 5,11 ----
#
PATH=/bin:/usr/bin:/sbin:/usr/sbin
! host=`hostname`
echo "Subject: $host monthly run output"
W=/var/log/wtmp
Index: security
===================================================================
RCS file: /usr/CVS/src/etc/security,v
retrieving revision 1.16.2.6
diff -c -r1.16.2.6 security
*** security 1998/07/08 22:44:08 1.16.2.6
--- security 1998/12/15 12:54:37
***************
*** 11,17 ****
echo ""
}
! host=`hostname -s`
echo "Subject: $host security check output"
LOG=/var/log
--- 11,17 ----
echo ""
}
! host=`hostname`
echo "Subject: $host security check output"
LOG=/var/log
>Audit-Trail:
>Unformatted:
To Unsubscribe: send mail to majordomo@FreeBSD.org
with "unsubscribe freebsd-bugs" in the body of the message
help
Want to link to this message? Use this URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?199812151303.PAA20298>
