On Sun, 7 Jun 2020 12:05:59 +0200 Niels Thykier <ni...@thykier.net> wrote: > Control: block -1 by 946456 > > Moritz Muehlenhoff: > > Package: debhelper > > Severity: wishlist > > > > It would be great if debhelper would support adding system users via > > systemd-sysusers > > in a simple, DRY-avoiding manner. System users seem like a common enough > > feature to > > be part of standard debhelper I suppose. > > > > A system user is defined in a short config shipped in > > /usr/lib/sysusers.d/*.conf, the format > > of such a user definition is documented in sysusers.d(5). The user(s) are > > created by > > running systemd-sysusers. > > > > One package currently in the archive which does that manually is tomcat9. > > > > One possible debhelper interface could be that a sysuser definition in > > debian/sysuser > > or debian/BINARYPACKAGE.sysuser gets installed into > > /usr/lib/sysusers.d/BINARYPACKAGE.conf > > along with a dh snippet which generates/amends the package's postinst to > > execute > > systemd-sysusers and adds a dependency on systemd (there's also #946456 > > which might > > lead to a standalone systemd-sysusers package later on). > > > > Cheers, > > Moritz > > > > > > Hi, > > I am interested in adding support for sysusers, but I would prefer to do > it after the package split mentioned in #946456 (assuming it will occur). > > @Michael and @Felipe: Can you give an update on where we are with #946456? > > ~Niels > >
Hi Michael and Felipe, Any news on this? :) Also, will it only take a postinst script to create the user and nothing else? What about removal; is there any action to be done for locking the users? ~Niels