Bug#314333: [Pkg-nagios-devel] Bug#314333: nagios-text: /etc/apache created without permission

Olaf van der Spek Olaf van der Spek <olafvdspek@gmail.com>, 314333@bugs.debian.org
Sat, 2 Jul 2005 11:54:07 +0200


On 7/2/05, sean finney <seanius@seanius.net> wrote:
> hi olaf,
>=20
> On Wed, Jun 29, 2005 at 10:14:40AM +0200, Olaf van der Spek wrote:
> > But I selected Apache 2 (as can be seen in the debconf output), so it
> > can also happen when the question is not skipped.
>=20
> i can't reproduce that.  if i purge nagios, and all web servers but
> apache2, and install nagios, it does not create the file.  any ideas?

After a fresh Debian Sarge install:

Setting up apache2-mpm-worker (2.0.54-4) ...
Starting web server: Apache2.

Setting up apache2 (2.0.54-4) ...
debian:~# cd /etc/apache
-bash: cd: /etc/apache: No such file or directory
debian:~# apt-get install nagios-text
Reading Package Lists... Done
Building Dependency Tree... Done
The following extra packages will be installed:
  fping libfreetype6 libgd2-noxpm libjpeg62 libmysqlclient12
libnet-snmp-perl libpng12-0 libpq3 libradius1 libsensors3
  libsnmp-base libsnmp5 mysql-common nagios-common nagios-plugins ntp
ntp-server ntp-simple ntpdate qstat radiusclient1
  samba-common smbclient snmp
Suggested packages:
  libfreetype6-dev libgd-tools libcrypt-des-perl libdigest-hmac-perl
libdigest-sha1-perl libio-socket-inet6-perl postgresql-doc
  postgresql-client lm-sensors lm-sensors-mod-2.9 kernel-image-2.6 ntp-doc =
smbfs
The following NEW packages will be installed:
  fping libfreetype6 libgd2-noxpm libjpeg62 libmysqlclient12
libnet-snmp-perl libpng12-0 libpq3 libradius1 libsensors3
  libsnmp-base libsnmp5 mysql-common nagios-common nagios-plugins
nagios-text ntp ntp-server ntp-simple ntpdate qstat
  radiusclient1 samba-common smbclient snmp
0 upgraded, 25 newly installed, 0 to remove and 0 not upgraded.
Need to get 12.4MB of archives.
After unpacking 29.8MB of additional disk space will be used.
Do you want to continue? [Y/n]=20
Get:1 http://ftp.nl.debian.org stable/main fping 2.4b2-to-ipv6-10 [29.3kB]
Get:2 http://ftp.nl.debian.org stable/main libfreetype6 2.1.7-2.4 [364kB]
Get:3 http://ftp.nl.debian.org stable/main libjpeg62 6b-10 [80.9kB]
Get:4 http://ftp.nl.debian.org stable/main libpng12-0 1.2.8rel-1 [115kB]
Get:5 http://ftp.nl.debian.org stable/main libgd2-noxpm 2.0.33-1.1 [193kB]
Get:6 http://ftp.nl.debian.org stable/main mysql-common 4.0.24-10 [34.1kB]
Get:7 http://ftp.nl.debian.org stable/main libmysqlclient12 4.0.24-10 [296k=
B]
Get:8 http://ftp.nl.debian.org stable/main libnet-snmp-perl 5.0.1-1 [107kB]
Get:9 http://ftp.nl.debian.org stable/main libpq3 7.4.7-6sarge1 [126kB]
Get:10 http://ftp.nl.debian.org stable/main libsensors3 1:2.9.1-1 [77.5kB]
Get:11 http://ftp.nl.debian.org stable/main libsnmp-base 5.1.2-6.1 [1009kB]
Get:12 http://ftp.nl.debian.org stable/main libsnmp5 5.1.2-6.1 [1532kB]
Get:13 http://ftp.nl.debian.org stable/main nagios-text
2:1.3-cvs.20050402-2.sarge.1 [901kB]
Get:14 http://ftp.nl.debian.org stable/main qstat 2.8-1 [134kB]
Get:15 http://ftp.nl.debian.org stable/main snmp 5.1.2-6.1 [811kB]
Get:16 http://ftp.nl.debian.org stable/main libradius1 0.3.2-8
[31.4kB]
Get:17 http://ftp.nl.debian.org stable/main radiusclient1 0.3.2-8
[32.9kB]
Get:18 http://ftp.nl.debian.org stable/main ntpdate 1:4.2.0a+stable-2
[41.5kB]
Get:19 http://ftp.nl.debian.org stable/main ntp 1:4.2.0a+stable-2
[256kB]
Get:20 http://ftp.nl.debian.org stable/main ntp-server
1:4.2.0a+stable-2 [31.2kB]
Get:21 http://ftp.nl.debian.org stable/main ntp-simple
1:4.2.0a+stable-2 [121kB]
Get:22 http://ftp.nl.debian.org stable/main samba-common 3.0.14a-3
[1988kB]
Get:23 http://ftp.nl.debian.org stable/main smbclient 3.0.14a-3
[2536kB]
Get:24 http://ftp.nl.debian.org stable/main nagios-plugins 1.4-6
[352kB]
Get:25 http://ftp.nl.debian.org stable/main nagios-common
2:1.3-cvs.20050402-2.sarge.1 [1220kB]
Fetched 12.4MB in 26s (477kB/s)
Preconfiguring packages ...

Selecting previously deselected package fping.
(Reading database ... 20817 files and directories currently installed.)
Unpacking fping (from .../fping_2.4b2-to-ipv6-10_i386.deb) ...
Selecting previously deselected package libfreetype6.
Unpacking libfreetype6 (from .../libfreetype6_2.1.7-2.4_i386.deb) ...
Selecting previously deselected package libjpeg62.
Unpacking libjpeg62 (from .../libjpeg62_6b-10_i386.deb) ...
Selecting previously deselected package libpng12-0.
Unpacking libpng12-0 (from .../libpng12-0_1.2.8rel-1_i386.deb) ...
Selecting previously deselected package libgd2-noxpm.
Unpacking libgd2-noxpm (from .../libgd2-noxpm_2.0.33-1.1_i386.deb) ...
Selecting previously deselected package mysql-common.
Unpacking mysql-common (from .../mysql-common_4.0.24-10_all.deb) ...
Selecting previously deselected package libmysqlclient12.
Unpacking libmysqlclient12 (from .../libmysqlclient12_4.0.24-10_i386.deb) .=
..
Selecting previously deselected package libnet-snmp-perl.
Unpacking libnet-snmp-perl (from .../libnet-snmp-perl_5.0.1-1_all.deb) ...
Selecting previously deselected package libpq3.
Unpacking libpq3 (from .../libpq3_7.4.7-6sarge1_i386.deb) ...
Selecting previously deselected package libsensors3.
Unpacking libsensors3 (from .../libsensors3_1%3a2.9.1-1_i386.deb) ...
Selecting previously deselected package libsnmp-base.
Unpacking libsnmp-base (from .../libsnmp-base_5.1.2-6.1_all.deb) ...
Selecting previously deselected package libsnmp5.
Unpacking libsnmp5 (from .../libsnmp5_5.1.2-6.1_i386.deb) ...
Selecting previously deselected package nagios-text.
Unpacking nagios-text (from
.../nagios-text_2%3a1.3-cvs.20050402-2.sarge.1_i386.deb) ...
Selecting previously deselected package qstat.
Unpacking qstat (from .../archives/qstat_2.8-1_i386.deb) ...
Selecting previously deselected package snmp.
Unpacking snmp (from .../snmp_5.1.2-6.1_i386.deb) ...
Selecting previously deselected package libradius1.
Unpacking libradius1 (from .../libradius1_0.3.2-8_i386.deb) ...
Selecting previously deselected package radiusclient1.
Unpacking radiusclient1 (from .../radiusclient1_0.3.2-8_i386.deb) ...
Selecting previously deselected package ntpdate.
Unpacking ntpdate (from .../ntpdate_1%3a4.2.0a+stable-2_i386.deb) ...
Selecting previously deselected package ntp.
Unpacking ntp (from .../ntp_1%3a4.2.0a+stable-2_i386.deb) ...
Selecting previously deselected package ntp-server.
Unpacking ntp-server (from .../ntp-server_1%3a4.2.0a+stable-2_i386.deb) ...
 Removing any system startup links for /etc/init.d/ntp-simple ...
 Removing any system startup links for /etc/init.d/ntp-refclock ...
 Removing any system startup links for /etc/init.d/ntp ...
ntpd: no process killed
Selecting previously deselected package ntp-simple.
Unpacking ntp-simple (from .../ntp-simple_1%3a4.2.0a+stable-2_i386.deb) ...
Selecting previously deselected package samba-common.
Unpacking samba-common (from .../samba-common_3.0.14a-3_i386.deb) ...
Selecting previously deselected package smbclient.
Unpacking smbclient (from .../smbclient_3.0.14a-3_i386.deb) ...
Selecting previously deselected package nagios-plugins.
Unpacking nagios-plugins (from .../nagios-plugins_1.4-6_i386.deb) ...
Selecting previously deselected package nagios-common.
Unpacking nagios-common (from
.../nagios-common_2%3a1.3-cvs.20050402-2.sarge.1_all.deb) ...
Setting up fping (2.4b2-to-ipv6-10) ...
Setting up libfreetype6 (2.1.7-2.4) ...

Setting up libjpeg62 (6b-10) ...

Setting up libpng12-0 (1.2.8rel-1) ...

Setting up libgd2-noxpm (2.0.33-1.1) ...
Setting up mysql-common (4.0.24-10) ...
Setting up libmysqlclient12 (4.0.24-10) ...

Setting up libnet-snmp-perl (5.0.1-1) ...
Setting up libpq3 (7.4.7-6sarge1) ...

Setting up libsensors3 (2.9.1-1) ...

Setting up libsnmp-base (5.1.2-6.1) ...
Setting up libsnmp5 (5.1.2-6.1) ...

Setting up qstat (2.8-1) ...
Setting up snmp (5.1.2-6.1) ...
Setting up libradius1 (0.3.2-8) ...

Setting up radiusclient1 (0.3.2-8) ...

Setting up ntpdate (4.2.0a+stable-2) ...
Running ntpdate to synchronize clock.

Setting up ntp (4.2.0a+stable-2) ...

Setting up samba-common (3.0.14a-3) ...

Setting up smbclient (3.0.14a-3) ...
Setting up nagios-plugins (1.4-6) ...

Setting up nagios-common (1.3-cvs.20050402-2.sarge.1) ...
Reloading web server config...done.
Not setting blank password for nagiosadmin
Starting nagios: nagios.

Setting up nagios-text (1.3-cvs.20050402-2.sarge.1) ...

Setting up ntp-server (4.2.0a+stable-2) ...
Starting NTP server: ntpd.

Setting up ntp-simple (4.2.0a+stable-2) ...

debian:~# cd /etc/apache
debian:/etc/apache# ls -lR
.:
total 1
drwxr-xr-x  2 root root 1024 2005-06-02 16:34 conf.d

./conf.d:
total 0

The directory has been created (bad), but no file has been installed (good)=
.