Report forwarded to debian-bugs-dist@lists.debian.org, Matthew Vernon <matthew@debian.org>, openssh@packages.qa.debian.org: Bug#192966; Package ssh.
(full text, mbox, link).
Acknowledgement sent to Joey Hess <joeyh@debian.org>:
New Bug report received and forwarded. Copy sent to Matthew Vernon <matthew@debian.org>, openssh@packages.qa.debian.org.
(full text, mbox, link).
Package: ssh
Version: 1:3.6.1p2-1
Severity: normal
I thought I filed a bug on this before, but cannot find it.
/etc/default/ssh should be mode 644, not 755.
-- System Information:
Debian Release: testing/unstable
Architecture: i386
Kernel: Linux dragon 2.4.20 #1 Fri Apr 11 22:52:20 EDT 2003 i686
Locale: LANG=C, LC_CTYPE=C
Versions of packages ssh depends on:
ii adduser 3.50 Add and remove users and groups
ii debconf 1.2.35 Debian configuration management sy
ii libc6 2.3.1-17 GNU C Library: Shared libraries an
ii libpam-modules 0.76-10 Pluggable Authentication Modules f
ii libpam0g 0.76-10 Pluggable Authentication Modules l
ii libssl0.9.7 0.9.7b-2 SSL shared libraries
ii libwrap0 7.6-ipv6.1-3 Wietse Venema's TCP wrappers libra
ii zlib1g 1:1.1.4-11 compression library - runtime
-- debconf information excluded
--
see shy jo
Information forwarded to debian-bugs-dist@lists.debian.org, Matthew Vernon <matthew@debian.org>, openssh@packages.qa.debian.org: Bug#192966; Package ssh.
(full text, mbox, link).
Acknowledgement sent to Colin Watson <cjwatson@debian.org>:
Extra info received and forwarded to list. Copy sent to Matthew Vernon <matthew@debian.org>, openssh@packages.qa.debian.org.
(full text, mbox, link).
On Sun, May 11, 2003 at 04:29:19PM -0400, Joey Hess wrote:
> Package: ssh
> Version: 1:3.6.1p2-1
> Severity: normal
>
> I thought I filed a bug on this before, but cannot find it.
> /etc/default/ssh should be mode 644, not 755.
You did (#185537), and it is, in the .deb:
-rw-r--r-- root/root 122 2003-05-05 17:53:17 ./etc/default/ssh
Does dpkg perhaps not resolve permissions properly on conffiles or
something?
--
Colin Watson [cjwatson@flatline.org.uk]
Information forwarded to debian-bugs-dist@lists.debian.org, Matthew Vernon <matthew@debian.org>, openssh@packages.qa.debian.org: Bug#192966; Package ssh.
(full text, mbox, link).
Acknowledgement sent to Joey Hess <joeyh@debian.org>:
Extra info received and forwarded to list. Copy sent to Matthew Vernon <matthew@debian.org>, openssh@packages.qa.debian.org.
(full text, mbox, link).
Colin Watson wrote:
> On Sun, May 11, 2003 at 04:29:19PM -0400, Joey Hess wrote:
> > Package: ssh
> > Version: 1:3.6.1p2-1
> > Severity: normal
> >
> > I thought I filed a bug on this before, but cannot find it.
> > /etc/default/ssh should be mode 644, not 755.
>
> You did (#185537), and it is, in the .deb:
>
> -rw-r--r-- root/root 122 2003-05-05 17:53:17 ./etc/default/ssh
>
> Does dpkg perhaps not resolve permissions properly on conffiles or
> something?
I suspect maybe it treats them the same as directories, although this is
the first time I've run into it.
--
see shy jo
Information forwarded to debian-bugs-dist@lists.debian.org, Matthew Vernon <matthew@debian.org>, openssh@packages.qa.debian.org: Bug#192966; Package ssh.
(full text, mbox, link).
Acknowledgement sent to Colin Watson <cjwatson@debian.org>:
Extra info received and forwarded to list. Copy sent to Matthew Vernon <matthew@debian.org>, openssh@packages.qa.debian.org.
(full text, mbox, link).
clone 192966 -1
reassign -1 dpkg
retitle -1 dpkg: doesn't resolve permissions on conffiles?
thanks
On Sun, May 11, 2003 at 06:16:00PM -0400, Joey Hess wrote:
> Colin Watson wrote:
> > On Sun, May 11, 2003 at 04:29:19PM -0400, Joey Hess wrote:
> > > Package: ssh
> > > Version: 1:3.6.1p2-1
> > > Severity: normal
> > >
> > > I thought I filed a bug on this before, but cannot find it.
> > > /etc/default/ssh should be mode 644, not 755.
> >
> > You did (#185537), and it is, in the .deb:
> >
> > -rw-r--r-- root/root 122 2003-05-05 17:53:17 ./etc/default/ssh
> >
> > Does dpkg perhaps not resolve permissions properly on conffiles or
> > something?
>
> I suspect maybe it treats them the same as directories, although this is
> the first time I've run into it.
Cloning this bug off to dpkg, then. I'll hack around it in ssh's
postinst.
Thanks,
--
Colin Watson [cjwatson@flatline.org.uk]
Bug 192966 cloned as bug 192981.
Request was from Colin Watson <cjwatson@debian.org>
to control@bugs.debian.org.
(full text, mbox, link).
Bug reassigned from package `ssh' to `dpkg'.
Request was from Colin Watson <cjwatson@debian.org>
to control@bugs.debian.org.
(full text, mbox, link).
Changed Bug title.
Request was from Colin Watson <cjwatson@debian.org>
to control@bugs.debian.org.
(full text, mbox, link).
Changed Bug title.
Request was from Adam Heath <doogie@brainfood.com>
to control@bugs.debian.org.
(full text, mbox, link).
Message sent on to Joey Hess <joeyh@debian.org>:
Bug#192981.
(full text, mbox, link).
I believe that the bug here arose from /etc/default/ssh being
installed with mode 755 in one package version, as described
in #185537. Presumably this conffile was preserved across
upgrades (with the wrong mode). Can this report be closed?
--
Thomas Hood <jdthood@yahoo.co.uk>
Information stored: Bug#192981; Package dpkg.
(full text, mbox, link).
Acknowledgement sent to Joey Hess <joeyh@debian.org>:
Extra info received and filed, but not forwarded.
(full text, mbox, link).
Thomas Hood wrote:
> I believe that the bug here arose from /etc/default/ssh being
> installed with mode 755 in one package version, as described
> in #185537. Presumably this conffile was preserved across
> upgrades (with the wrong mode). Can this report be closed?
Either dpkg is broken, or ssh needs to fix the permissions in its
postint. Which I see it does. If dpkg is behaving as intended, this bug
can be closed.
--
see shy jo
Tags added: wontfix
Request was from jdthood@yahoo.co.uk (Thomas Hood)
to control@bugs.debian.org.
(full text, mbox, link).
Information forwarded to debian-bugs-dist@lists.debian.org, Dpkg Development <debian-dpkg@lists.debian.org>: Bug#192981; Package dpkg.
(full text, mbox, link).
Acknowledgement sent to Justin Pryzby <justinpryzby@users.sourceforge.net>:
Extra info received and forwarded to list. Copy sent to Dpkg Development <debian-dpkg@lists.debian.org>.
(full text, mbox, link).
Hi all,
WRT #192981, dpkg clearly does not install all conffiles with mode
0755; the original problem is explained by the installation by ssh of
an 0755 conffile, the permissions of which was preserved across
upgrades.
With your permission, I would like this bug to be closed.
(Alternately, it could be retitled: "Update file metadata when
preserving across upgrades").
Justin
References
[0] http://bugs.debian.org/cgi-bin/bugreport.cgi?bug=192981
Changed Bug title.
Request was from Scott James Remnant <scott@netsplit.com>
to control@bugs.debian.org.
(full text, mbox, link).
Severity set to `important'.
Request was from Scott James Remnant <scott@netsplit.com>
to control@bugs.debian.org.
(full text, mbox, link).
Tags removed: wontfix
Request was from Scott James Remnant <scott@netsplit.com>
to control@bugs.debian.org.
(full text, mbox, link).
Information forwarded to debian-bugs-dist@lists.debian.org, Scott James Remnant <scott@netsplit.com>: Bug#192981; Package dpkg.
(full text, mbox, link).
Acknowledgement sent to Thomas Hood <jdthood@yahoo.co.uk>:
Extra info received and forwarded to list. Copy sent to Scott James Remnant <scott@netsplit.com>.
(full text, mbox, link).
On Thu, 2005-08-25 at 19:19 +0200, Thomas Hood wrote:
> I take it that dpkg will be changed someday so that an unmodified
> conffile will have its perms updated?
>
Yeah, that should be supported I think. Don't know whether it'll get
fixed in 1.13, but 2.0 would inherently fix it I think.
Scott
--
Have you ever, ever felt like this?
Had strange things happen? Are you going round the twist?
Information forwarded to debian-bugs-dist@lists.debian.org, Dpkg Developers <team@dpkg.org>: Bug#192981; Package dpkg.
(full text, mbox, link).
Acknowledgement sent to Ian Jackson <ian@davenant.greenend.org.uk>:
Extra info received and forwarded to list. Copy sent to Dpkg Developers <team@dpkg.org>.
(full text, mbox, link).
retitle 192981 unchanged permissions of conffile should be updated
severity 192981 wishlist
thanks
I don't think it would be correct to overwrite the on-disk permissions
of a conffile from the permissions in the package, just because
neither the user nor package maintainer had changed the _contents_ of
the file. The existing arrangements are specifically intended to
preserve the decision of a user who merely makes a permissions change
to a conffile.
It might perhaps be desirable to update the permissions on the same
basis as the contents: if the on-disk permissions (mode and ownership)
are identical to those installed in the previous package, and the
maintainer has shipped a package with different permissions, the
on-disk copy should (by default) be updated, etc.
However, that would require dpkg to record the permissions as well as
the contents of the previously installed file, which it currently
doesn't do.
This might be a useful feature but I don't think the lack ought to be
considered a bug. In the meantime in cases where it is important, the
package maintainer can deal with the problem via maintainer scripts.
There is no reason why a maintainer script should not (with
appropriate care and probably after asking permission) adjust the
permissions of a conffile. (Note that a maintainer script may not
change the contents of a conffile.)
To avoid problems if this wishlist item were ever to be implemented, a
maintainer who writes a script which adjusts permissions without
prompting (which is a dangerous thing to do and should only be done
after very careful thought) should not set the permissions to anything
other than identical to those shipped in the corresponding package
filesystem archive. That will avoid spurious conffile permissions
prompts from dpkg in this hypothetical future.
Thanks,
Ian.
Changed Bug title to `unchanged permissions of conffile should be updated' from `[CONFFILE] dpkg dropped permission change on conffile'.
Request was from Ian Jackson <ian@davenant.greenend.org.uk>
to control@bugs.debian.org.
(Tue, 30 Oct 2007 20:21:02 GMT) (full text, mbox, link).
Severity set to `wishlist' from `important'
Request was from Ian Jackson <ian@davenant.greenend.org.uk>
to control@bugs.debian.org.
(Tue, 30 Oct 2007 20:21:03 GMT) (full text, mbox, link).
Changed Bug title to 'dpkg: Unmodified permissions of conffile should be updated' from 'unchanged permissions of conffile should be updated'.
Request was from Guillem Jover <guillem@debian.org>
to control@bugs.debian.org.
(Fri, 14 Oct 2022 22:33:07 GMT) (full text, mbox, link).
Marked as found in versions dpkg/1.21.7.
Request was from Guillem Jover <guillem@debian.org>
to control@bugs.debian.org.
(Fri, 14 Oct 2022 22:33:07 GMT) (full text, mbox, link).
Merged 1929811009913
Request was from Guillem Jover <guillem@debian.org>
to control@bugs.debian.org.
(Fri, 14 Oct 2022 22:33:08 GMT) (full text, mbox, link).
Debbugs is free software and licensed under the terms of the GNU General
Public License version 2. The current version can be obtained
from https://bugs.debian.org/debbugs-source/.