Rebuild Todo List Switch to systemd-sysusers

2017-12-15 - Bruno Pagani

We are fully embracing the use of systemd-sysusers to create system users and groups required by packages. The filesystem package has been switched to this, now is the turn of every other package having not yet switched.

You mostly need to provide an accurate sysusers.d file (see and have you package install it under /usr/lib/sysusers.d/<pkgname>.conf.

You can also (thanks @heftig) do a one liner (in most cases) from the install() function like this (replacing <sysusers.d content> with the actual content):
echo '<sysusers.d content>' |
install -Dm644 /dev/stdin "$pkgdir"/usr/lib/sysusers.d/$pkgname.conf

You can see several examples in the unbound, couchdb or stubby packages. Once done, you might even be able to remove the .install file (we have hook to run systemd-sysusers).

Don’t hesitate to ask me if you’re unsure. ;) Some cases might be tricky.

Generated on with:
grep --files-with-matches useradd /srv/svntogit/repos/*/*/trunk/*
grep --files-with-matches groupadd /srv/svntogit/repos/*/*/trunk/*

There might be false detections, just mark as done then.

P.S.: I initially started by opening issues for some packages while providing the correct sysusers file, so if your package is concerned just look at your assigned issues.

Link to lists of pkgbase values:

Filter Todo List Packages

Select filter criteria
24 packages displayed out of 24 total packages.
Arch Repository Name Current Version Staging Version Maintainers Status Last Touched By
x86_64 Extra avahi 1:0.8+r189+g35bb1ba-1 heftig Complete heftig
x86_64 Extra bitlbee Complete polyzen
x86_64 Extra brltty 6.6-2 dvzrv Complete arojas
x86_64 Extra clamav 1.2.1-1 anthraxx, grazzolini Complete anthraxx
x86_64 Extra colord 1.4.6-1 heftig Complete heftig
any Extra deluge 1:2.1.1-4 heftig Complete heftig
x86_64 Extra hylafax Complete arojas
x86_64 Extra kismet 2023_07_R1-6 juergen, anthraxx Complete anthraxx
x86_64 Extra lightdm 1:1.32.0-4 alucryd Complete alucryd
x86_64 Extra memcached 1.6.21-1 anthraxx Complete anthraxx
x86_64 Extra mpd 0.23.14-2 anthraxx, dvzrv Complete bisson
any Extra munin sangy Complete arojas
x86_64 Extra ntp 4.2.8.p17-1 lfleischer Complete lfleischer
x86_64 Extra nvidia-340xx-utils Complete svenstaro
x86_64 Extra nvidia-utils 545.29.06-1 svenstaro, felixonmars, daurnimator Complete svenstaro
x86_64 Extra pgbouncer 1.21.0-1 anthraxx Complete anthraxx
x86_64 Extra polkit 123-1 heftig Complete heftig
x86_64 Extra postfix 3.8.3-1 dvzrv Complete bisson
x86_64 Extra postgresql 15.4-2 anthraxx Complete anthraxx
x86_64 Core rpcbind 1.2.6-3 andyrtr Complete andyrtr
x86_64 Core shadow 4.14.2-1 grazzolini, dvzrv Complete eschwartz
x86_64 Extra spamassassin 4.0.0-2 bluewind Complete bluewind
x86_64 Extra usbmuxd 1.1.1-3 freswa Complete arojas
x86_64 Extra x2goserver Complete andyrtr