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

Andreas Beckmann debian at abeckmann.de
Thu Mar 1 21:40:24 UTC 2012


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





More information about the debian-science-maintainers mailing list