Bug#124103: marked as done (apt: Apt re-installs deleted /etc/rc*.d files and restarts programs... inetd for example)
Your message dated Thu, 20 Dec 2001 02:06:45 -0600 (CST)
with message-id <Pine.LNX.4.33.0112200204400.5060-100000@yakko.doogie.org>
and subject line Bug#124103: apt: Apt re-installs deleted /etc/rc*.d files and restarts programs... inetd for example
has caused the attached Bug report to be marked as done.
This means that you claim that the problem has been dealt with.
If this is not the case it is now your responsibility to reopen the
Bug report if necessary, and/or fix the problem forthwith.
(NB: If you are a system administrator and have no idea what I am
talking about this indicates a serious mail system misconfiguration
somewhere. Please contact me immediately.)
Debian bug tracking system administrator
(administrator, Debian Bugs database)
--------------------------------------
Received: (at submit) by bugs.debian.org; 15 Dec 2001 16:33:45 +0000
>From jeff@velvet.antistatic.com Sat Dec 15 10:33:45 2001
Return-path: <jeff@velvet.antistatic.com>
Received: from ma-duxbury2b-97.ply.adelphia.net (velvet.antistatic.com) [24.48.192.97]
by master.debian.org with esmtp (Exim 3.12 1 (Debian))
id 16FHkv-00043b-00; Sat, 15 Dec 2001 10:33:45 -0600
Received: by velvet.antistatic.com (Postfix, from userid 1000)
id 5944B3BE6; Sat, 15 Dec 2001 11:40:11 -0500 (EST)
From: "Jeffrey C. Albro" <jeff@velvet.antistatic.com>
To: Debian Bug Tracking System <submit@bugs.debian.org>
Subject: apt: Apt re-installs deleted /etc/rc*.d files and restarts programs... inetd for example
X-Reportbug-Version: 1.36
X-Mailer: reportbug 1.36
Date: Sat, 15 Dec 2001 11:40:11 -0500
Message-Id: <[🔎] 20011215164011.5944B3BE6@velvet.antistatic.com>
Delivered-To: submit@bugs.debian.org
Package: apt
Version: 0.5.4
Severity: normal
Tags: security security
If you run:
update-rc.d -f inetd remove (which blows away links in rc*.d, and stops it from starting on reboot, but doesn't delete the /etc/init.d/inetd file)
apt-get update && apt-get upgrade (and inted is updgraded)
Then the links in rc*.d are re-installed. I've seen this with lpd as well. I consider it a security hole as it re-opens porst I've closed on purpose.
-Jeff
-- System Information
Debian Release: 3.0
Architecture: i386
Kernel: Linux velvet 2.2.19pre17 #1 Tue Mar 13 22:37:59 EST 2001 i686
Locale: LANG=C, LC_CTYPE=C
Versions of packages apt depends on:
ii libc6 2.2.4-5 GNU C Library: Shared libraries an
ii libstdc++2.10-glibc2.2 1:2.95.4-0.011006 The GNU stdc++ library
---------------------------------------
Received: (at 124103-done) by bugs.debian.org; 20 Dec 2001 08:08:06 +0000
>From doogie@debian.org Thu Dec 20 02:08:06 2001
Return-path: <doogie@debian.org>
Received: from 12-238-101-237.client.attbi.com (yakko.doogie.org) [12.238.101.237] (uucp)
by master.debian.org with esmtp (Exim 3.12 1 (Debian))
id 16GyFK-0006Hg-00; Thu, 20 Dec 2001 02:08:06 -0600
Received: from localhost [127.0.0.1] (uucp)
by yakko.doogie.org with esmtp (Exim 3.33 1 (Debian))
id 16GyE2-0002Q6-00; Thu, 20 Dec 2001 02:06:46 -0600
Date: Thu, 20 Dec 2001 02:06:45 -0600 (CST)
From: Adam Heath <doogie@debian.org>
X-X-Sender: <adam@yakko.doogie.org>
To: "Jeffrey C. Albro" <jeff@velvet.antistatic.com>,
<124103-done@bugs.debian.org>
Subject: Re: Bug#124103: apt: Apt re-installs deleted /etc/rc*.d files and
restarts programs... inetd for example
In-Reply-To: <[🔎] 20011215164011.5944B3BE6@velvet.antistatic.com>
Message-ID: <Pine.LNX.4.33.0112200204400.5060-100000@yakko.doogie.org>
MIME-Version: 1.0
Content-Type: TEXT/PLAIN; charset=US-ASCII
Delivered-To: 124103-done@bugs.debian.org
First, fix your mailer so it wraps text at 75 columns or so.
On Sat, 15 Dec 2001, Jeffrey C. Albro wrote:
> update-rc.d -f inetd remove (which blows away links in rc*.d, and stops it
> from starting on reboot, but doesn't delete the /etc/init.d/inetd file)
This is not the way to do what you want. You should remove all S?? links, and
make them all K?? links. This will keep the service from being restarted, and
will also keep new S?? links from being recreated upon upgrades.
> apt-get update && apt-get upgrade (and inted is updgraded)
>
> Then the links in rc*.d are re-installed. I've seen this with lpd as well.
> I consider it a security hole as it re-opens porst I've closed on purpose.
This could never be a bug in apt. Apt doesn't contain any init script, and
never calls update-rc.d itself. Learn to file bugs against the proper package
for the future.
Reply to: