[Date Prev][Date Next] [Thread Prev][Thread Next] [Date Index] [Thread Index]

Bug#1034758: x2goserver-common: fails to purge - command (deluser|delgroup) in postrm not found



Package: x2goserver-common
Version: 4.1.0.3-6
Severity: wishlist

Hi,

During a test with piuparts I noticed your package failed to purge due to a
command not found. According to policy 7.2 you cannot rely on the depends being
available during purge, only the essential packages are available for sure.

The fix should be easy: your package is using adduser/addgroup or
deluser/delgroup from the adduser package, which is only priority important.
Using useradd/groupadd or userdel/groupdel from the passwd package (priority
required) should fix this problem.

There is ongoing discussion how to handle system users on package removal, see
https://bugs.debian.org/621833
Consensus seems to be not to remove system users (to avoid reusing user/group
IDs which could grant access to the wrong files) but to "lock" them (where
"locking"/"unlocking" is not yet precisely defined). Until that has been
decided it should be sufficient to have the postrm script ignore any errors
from deluser/delgroup:
   deluser/delgroup ... || true

Piuparts log is here:
https://piuparts.debian.org/sid/fail/x2goserver-common_4.1.0.3-6.log

Regards,
Patrice


-- System Information:
Debian Release: 12.0
  APT prefers unstable-debug
  APT policy: (500, 'unstable-debug'), (500, 'unstable'), (1, 'experimental-debug'), (1, 'experimental')
Architecture: amd64 (x86_64)
Foreign Architectures: i386

Kernel: Linux 6.1.0-7-amd64 (SMP w/12 CPU threads; PREEMPT)
Locale: LANG=fr_FR.UTF-8, LC_CTYPE=fr_FR.UTF-8 (charmap=UTF-8), LANGUAGE not set
Shell: /bin/sh linked to /usr/bin/dash
Init: systemd (via /run/systemd/system)
LSM: AppArmor: enabled

Versions of packages x2goserver-common depends on:
ii  adduser  3.132

x2goserver-common recommends no packages.

x2goserver-common suggests no packages.


Reply to: