Debian Bug report logs - #657146
tango-common: unowned files after purge (policy 6.8, 10.8)

version graph

Package: tango-common; Maintainer for tango-common is Debian Science Maintainers <debian-science-maintainers@lists.alioth.debian.org>; Source for tango-common is src:tango.

Reported by: Andreas Beckmann <anbe@debian.org>

Date: Tue, 24 Jan 2012 13:21:18 UTC

Severity: important

Found in versions tango/8.1.2c+dfsg-1, tango/8.0.5+dfsg-3, tango/7.2.6+dfsg-14, tango/7.2.6+dfsg-12, tango/8.1.2c+dfsg-2, tango/8.0.5+dfsg-2, tango/8.1.2c+dfsg-3, tango/7.2.6+dfsg-13

Reply or subscribe to this bug.

Toggle useless messages

View this report as an mbox folder, status mbox, maintainer mbox


Report forwarded to debian-bugs-dist@lists.debian.org, Debian Science Maintainers <debian-science-maintainers@lists.alioth.debian.org>:
Bug#657146; Package tango-common. (Tue, 24 Jan 2012 13:21:21 GMT) Full text and rfc822 format available.

Acknowledgement sent to Andreas Beckmann <debian@abeckmann.de>:
New Bug report received and forwarded. Copy sent to Debian Science Maintainers <debian-science-maintainers@lists.alioth.debian.org>. (Tue, 24 Jan 2012 13:21:23 GMT) Full text and rfc822 format available.

Message #5 received at submit@bugs.debian.org (full text, mbox):

From: Andreas Beckmann <debian@abeckmann.de>
To: Debian Bug Tracking System <submit@bugs.debian.org>
Subject: tango-common: unowned files after purge (policy 6.8, 10.8)
Date: Tue, 24 Jan 2012 13:38:41 +0100
[Message part 1 (text/plain, inline)]
Package: tango-common
Version: 7.2.6+dfsg-12
Severity: important
User: debian-qa@lists.debian.org
Usertags: piuparts

Hi,

during a test with piuparts I noticed your package left unowned files on
the system after purge, which is a violation of policy 6.8 (or 10.8):

http://www.debian.org/doc/debian-policy/ch-maintainerscripts.html#s-removedetails

Filing this as important as having a piuparts clean archive is a release
goal since lenny.

>From the attached log (scroll to the bottom...):

0m25.9s ERROR: FAIL: Package purging left files on system:
  /var/lib/tango	 not owned


cheers,

Andreas
[tango-common_7.2.6+dfsg-12.log.gz (application/x-gzip, attachment)]

Information forwarded to debian-bugs-dist@lists.debian.org, Debian Science Maintainers <debian-science-maintainers@lists.alioth.debian.org>:
Bug#657146; Package tango-common. (Thu, 26 Jan 2012 18:36:05 GMT) Full text and rfc822 format available.

Acknowledgement sent to PICCA Frédéric-Emmanuel <frederic-emmanuel.picca@synchrotron-soleil.fr>:
Extra info received and forwarded to list. Copy sent to Debian Science Maintainers <debian-science-maintainers@lists.alioth.debian.org>. (Thu, 26 Jan 2012 18:36:05 GMT) Full text and rfc822 format available.

Message #10 received at 657146@bugs.debian.org (full text, mbox):

From: PICCA Frédéric-Emmanuel <frederic-emmanuel.picca@synchrotron-soleil.fr>
To: Andreas Beckmann <debian@abeckmann.de>, "657146@bugs.debian.org" <657146@bugs.debian.org>
Date: Thu, 26 Jan 2012 18:13:36 +0000
Hello, my package provide in fact the creation of a user called tango (system) used by a few other packages (tango-db, tango-starter, tango-accesscontrol, daemons)
I inspired myself of mysql-server to create the tango users.

I decided to create the home of the tango user under /var/lib/tango

with preinst

DATADIR=/var/lib/tango

        adduser \
          --system \
          --ingroup tango \
          --home $DATADIR \
          --gecos "Tango Server" \
          --shell /bin/false \
          tango  >/dev/null

so in your opinion which snipset should I add to the postrm

if [ "$1" = "purge" ]; then
  rm -rf /var/lib/tango
fi

???

or using deluser ?

thanks for your help

Frederic




Information forwarded to debian-bugs-dist@lists.debian.org, Debian Science Maintainers <debian-science-maintainers@lists.alioth.debian.org>:
Bug#657146; Package tango-common. (Thu, 01 Mar 2012 21:45:08 GMT) Full text and rfc822 format available.

Acknowledgement sent to Andreas Beckmann <debian@abeckmann.de>:
Extra info received and forwarded to list. Copy sent to Debian Science Maintainers <debian-science-maintainers@lists.alioth.debian.org>. (Thu, 01 Mar 2012 21:45:08 GMT) Full text and rfc822 format available.

Message #15 received at 657146@bugs.debian.org (full text, mbox):

From: Andreas Beckmann <debian@abeckmann.de>
To: PICCA Frédéric-Emmanuel <frederic-emmanuel.picca@synchrotron-soleil.fr>
Cc: "657146@bugs.debian.org" <657146@bugs.debian.org>
Subject: Re: #657146: tango-common: unowned files after purge (policy 6.8, 10.8)
Date: Thu, 01 Mar 2012 22:40:24 +0100
On 2012-01-26 19:13, PICCA Frédéric-Emmanuel wrote:
> Hello, my package provide in fact the creation of a user called tango (system) used by a few other packages (tango-db, tango-starter, tango-accesscontrol, daemons)
> I inspired myself of mysql-server to create the tango users.
> 
> I decided to create the home of the tango user under /var/lib/tango
> 
> with preinst

I would
* ship the empty directory /var/lib/tango in the package
* create the user in postint instead of preinst
* chown in postinst as neccessary

> so in your opinion which snipset should I add to the postrm
> 
> if [ "$1" = "purge" ]; then
>   rm -rf /var/lib/tango
> fi

I don't know what will be created in /var/lib/tango ...
I would only remove files where I know the names/pattern ...
and leave the removal of /var/lib/tango/ to dpkg (which will fail if
there are any files of unaccounted origin - but that could be intentional).

> or using deluser ?

Looks like removing system users is going to be discouraged.


Andreas




Bug Marked as found in versions tango/7.2.6+dfsg-13. Request was from Andreas Beckmann <debian@abeckmann.de> to control@bugs.debian.org. (Fri, 02 Mar 2012 22:18:04 GMT) Full text and rfc822 format available.

Marked as found in versions tango/7.2.6+dfsg-14. Request was from Andreas Beckmann <debian@abeckmann.de> to control@bugs.debian.org. (Sat, 22 Sep 2012 17:27:07 GMT) Full text and rfc822 format available.

Changed Bug submitter to 'Andreas Beckmann <anbe@debian.org>' from 'Andreas Beckmann <debian@abeckmann.de>' Request was from Andreas Beckmann <anbe@debian.org> to control@bugs.debian.org. (Sat, 26 Jan 2013 06:28:51 GMT) Full text and rfc822 format available.

Marked as found in versions tango/8.0.5+dfsg-2. Request was from Andreas Beckmann <anbe@debian.org> to control@bugs.debian.org. (Sun, 12 May 2013 09:57:28 GMT) Full text and rfc822 format available.

Marked as found in versions tango/8.0.5+dfsg-3. Request was from Andreas Beckmann <anbe@debian.org> to control@bugs.debian.org. (Sat, 01 Jun 2013 22:03:06 GMT) Full text and rfc822 format available.

Information forwarded to debian-bugs-dist@lists.debian.org, Debian Science Maintainers <debian-science-maintainers@lists.alioth.debian.org>:
Bug#657146; Package tango-common. (Sun, 02 Jun 2013 08:36:48 GMT) Full text and rfc822 format available.

Acknowledgement sent to PICCA Frédéric-Emmanuel <frederic-emmanuel.picca@synchrotron-soleil.fr>:
Extra info received and forwarded to list. Copy sent to Debian Science Maintainers <debian-science-maintainers@lists.alioth.debian.org>. (Sun, 02 Jun 2013 08:36:48 GMT) Full text and rfc822 format available.

Message #30 received at 657146@bugs.debian.org (full text, mbox):

From: PICCA Frédéric-Emmanuel <frederic-emmanuel.picca@synchrotron-soleil.fr>
To: "657146@bugs.debian.org" <657146@bugs.debian.org>
Subject: tango-common: unowned files after purge (policy 6.8, 10.8)
Date: Sun, 2 Jun 2013 08:13:06 +0000
Hello, I am trying to solve this long standing bug for real

but on my system with piuparts 0.52 I got this 
8m43.0s ERROR: FAIL: Package purging left files on system:
  /etc/dbconfig-common/  owned by: dbconfig-common
  /etc/dbconfig-common/tango-db.conf     not owned

instead of

0m26.9s ERROR: FAIL: Package purging left files on system:
  /var/lib/tango/	 not owned




Marked as found in versions tango/8.1.2c+dfsg-1. Request was from Andreas Beckmann <anbe@debian.org> to control@bugs.debian.org. (Sun, 20 Oct 2013 22:12:11 GMT) Full text and rfc822 format available.

Marked as found in versions tango/8.1.2c+dfsg-2. Request was from Andreas Beckmann <anbe@debian.org> to control@bugs.debian.org. (Thu, 14 Nov 2013 08:27:10 GMT) Full text and rfc822 format available.

Marked as found in versions tango/8.1.2c+dfsg-3. Request was from Andreas Beckmann <anbe@debian.org> to control@bugs.debian.org. (Tue, 17 Dec 2013 20:12:18 GMT) Full text and rfc822 format available.

Send a report that this bug log contains spam.


Debian bug tracking system administrator <owner@bugs.debian.org>. Last modified: Wed Apr 16 17:04:11 2014; Machine Name: buxtehude.debian.org

Debian Bug tracking system
Copyright (C) 1999 Darren O. Benham, 1997,2003 nCipher Corporation Ltd, 1994-97 Ian Jackson.