Package: adduser
Version: 3.137
Severity: wishlist
X-Debbugs-Cc: plore...@disroot.org

Dear adduser maintainers,

recently a growing number of packages are using debhelper's
installsysusers addon to create system users. installsysusers
uses systemd-sysusers to create system users, so adduser
it's completely sidestepped.

At the same time several DDs decided that dh_sysuser (I'm the maintainer),
that uses adduser, has to go away before the next stable release[1].
Now my problem is that the way installsysusers adds a dependency on systemd
doesn't work well for alternatives inits[2], so I'm not comfortable to drop
dh_sysuser and I'm looking for a solution.

If adduser could be used as alternative to systemd by dh_installsysusers
that would solve my issue. Even if you don't care about my use case, the
linux world is standardizing more and more on systemd features so maybe
this could be a useful addition to adduser?

According to my understanding, in order to be used by dh_installsysusers
adduser has to learn to

A) create system user on a target chroot

B) use a sysusers.d[3] file as input

I'm available to produce patches for the two above, it could be
a new option in adduser or a new "addsysuserd" program, I don't have an
opinion on that.
If patches are accepted I also will be available to fix bugs that
could arise from those new features.

this is a relevant effort for me, so I would like to know in advance if
a sane patch for this will be accepted or not.

Thanks for considering,
Lorenzo

[1] https://bugs.debian.org/cgi-bin/bugreport.cgi?bug=981937
[2] does not work for hurd too
    https://bugs.debian.org/cgi-bin/bugreport.cgi?bug=1076045
[3] https://www.freedesktop.org/software/systemd/man/latest/sysusers.d.html

-- System Information:
Debian Release: trixie/sid
  APT prefers unstable
  APT policy: (500, 'unstable'), (1, 'experimental')
Architecture: amd64 (x86_64)

Kernel: Linux 6.8.12-amd64 (SMP w/4 CPU threads; PREEMPT)
Kernel taint flags: TAINT_FIRMWARE_WORKAROUND, TAINT_OOT_MODULE, 
TAINT_UNSIGNED_MODULE
Locale: LANG=en_US.UTF-8, LC_CTYPE=en_US.UTF-8 (charmap=UTF-8), 
LANGUAGE=en_US:en
Shell: /bin/sh linked to /usr/bin/dash
Init: runit (via /run/runit.stopit)
LSM: AppArmor: enabled

Versions of packages adduser depends on:
ii  passwd  1:4.16.0-4

adduser recommends no packages.

Versions of packages adduser suggests:
ii  cron                    3.0pl1-189
ii  liblocale-gettext-perl  1.07-7
ii  perl                    5.38.2-5
ii  quota                   4.06-1.1

-- debconf information excluded

Reply via email to