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 https://www.freedesktop.org/software/systemd/man/sysusers.d.html) 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 orion.archlinux.org 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
87 packages displayed out of 87 total packages.
Arch Repository Name Current Version Staging Version Maintainers Status Last Touched By
any Community android-udev 20181031-1 anatolik Complete anatolik
x86_64 Extra avahi 0.7+16+g1cc2b8e-2 heftig Complete heftig
x86_64 Community bip Complete bgyorgy
x86_64 Extra bitlbee 3.5.1-2 jelle Incomplete
x86_64 Extra brltty 5.6-7 Complete arojas
x86_64 Community bumblebee 3.2.1-20 lcarlier, svenstaro Complete svenstaro
x86_64 Community chrony 3.4-1 anthraxx Complete eschwartz
x86_64 Extra clamav 0.101.0-1 anthraxx Complete anthraxx
x86_64 Extra colord 1.4.3-2 jgc, heftig Complete heftig
x86_64 Community darkstat 3.0.719-2 eworm Complete eworm
any Extra deluge 1.3.15+14+gb8e5ebe82-1 heftig Complete heftig
x86_64 Community dovecot 2.3.4-1 demize, foxxx0 Complete eschwartz
x86_64 Community dspam Complete bgyorgy
any Community emby-server 3.5.3.0-1 alucryd Complete alucryd
x86_64 Community exim 4.91-2 fyan Complete eschwartz
x86_64 Community fcron 3.2.1-3 anthraxx Complete eschwartz
x86_64 Community gitlab-shell 2:8.4.3-1 svenstaro Complete svenstaro
x86_64 Community gnome-initial-setup 3.30.0-1 bgyorgy Complete bgyorgy
x86_64 Community haproxy 1.8.14-1 demize Complete eschwartz
x86_64 Extra hylafax 6.0.7-1 tpowa Incomplete
x86_64 Community incron 0.5.12-3 fyan Complete eschwartz
x86_64 Community inn 2.6.2-2 spupykin Complete spupykin
x86_64 Extra kismet 2016_07_R1-2 juergen Incomplete
x86_64 Community leafnode Complete bgyorgy
x86_64 Extra lightdm 1:1.28.0-1 alucryd Complete alucryd
x86_64 Community lxdm 0.5.3-6 bgyorgy Complete bgyorgy
x86_64 Extra memcached 1.5.10-1 dan, anthraxx Complete anthraxx
x86_64 Community minbif 1.0.5-8 lfleischer Complete eschwartz
x86_64 Community minetest 0.4.17.1-1 lcarlier Complete lcarlier
x86_64 Community minio 2018.11.06-1 svenstaro Complete svenstaro
x86_64 Community mongodb 4.0.4-1 fyan Complete eschwartz
any Community mopidy 2.2.1-1 Foxboron Complete svenstaro
x86_64 Extra mpd 0.21.3-1 bisson Complete bisson
any Extra munin 2.0.26-5 dan Incomplete
x86_64 Community murmur 1.2.19-12 svenstaro Complete svenstaro
x86_64 Community mythtv Complete bgyorgy
x86_64 Community neatx Complete bgyorgy
x86_64 Community netdata 1.11.1-1 svenstaro Complete svenstaro
x86_64 Community nrpe 3.2.1-3 jsteel Complete eschwartz
x86_64 Community nsd 4.1.25-1 bisson Complete bisson
x86_64 Community nss-pam-ldapd 0.9.10-1 demize Complete eschwartz
x86_64 Extra ntp 4.2.8.p12-2 lfleischer Complete lfleischer
x86_64 Community nullmailer 2.2-1 anthraxx Complete eschwartz
x86_64 Extra nvidia-340xx-utils 340.107-3 grazzolini Complete svenstaro
x86_64 Extra nvidia-utils 415.25-1 svenstaro, fyan Complete svenstaro
x86_64 Community opendkim 2.10.3-5 spupykin Complete eschwartz
x86_64 Community opendmarc 1.3.2-5 spupykin, foxxx0 Complete foxxx0
x86_64 Community openntpd 6.2p3-3 anthraxx Complete eschwartz
x86_64 Community opensmtpd 6.0.3p1-2 lfleischer Complete eschwartz
x86_64 Community oprofile 1.3.0-1 jelle Complete eschwartz
x86_64 Community osec Complete bgyorgy
x86_64 Community partimage 0.6.9-12 lfleischer Complete eschwartz
x86_64 Community pdnsd 1.2.9.a-13 spupykin Complete eschwartz
x86_64 Extra pgbouncer 1.9.0-1 dan, anthraxx Incomplete eschwartz
x86_64 Community polipo 1.1.1-3 jelle Complete eschwartz
x86_64 Extra polkit 0.115+24+g5230646-1 jgc Complete heftig
x86_64 Extra postfix 3.3.2-1 bisson Complete bisson
any Community postfwd 1.35-3 bluewind Complete eschwartz
x86_64 Extra postgresql 11.1-2 dan, anthraxx Incomplete eschwartz
any Community postgrey 1.37-3 spupykin Complete eschwartz
any Community puppet 6.0.4-3 shibumi Complete eschwartz
x86_64 Community quassel-core 0.13.0-1 jlichtblau Complete eschwartz
any Community rabbitmq 3.7.9-1 anthraxx Complete eschwartz
x86_64 Core rpcbind 1.2.5-2 tpowa, andyrtr Complete andyrtr
x86_64 Community sauerbraten 2013_02_03_collect_edition-5 lcarlier Complete eschwartz
x86_64 Community scponly 4.8-10 spupykin Complete eschwartz
x86_64 Core shadow 4.6-1 dreisner Complete eschwartz
x86_64 Community shairport-sync 3.2.2-1 anatolik Complete anatolik
any Community smokeping 2.7.2-1 bluewind Complete eschwartz
x86_64 Extra spamassassin 3.4.2-1 bluewind Complete bluewind
any Community spampd 2.30-14 bluewind Complete eschwartz
x86_64 Community stunnel 5.49-1 lfleischer Complete eschwartz
x86_64 Community tarantool 2.0.4.r497-3 anatolik Complete anatolik
any Community tenshi 0.17-1 bluewind Complete eschwartz
x86_64 Community tinyproxy 1.10.0-1 lfleischer Complete eschwartz
x86_64 Community tor 0.3.4.9-1 lfleischer Complete eschwartz
x86_64 Community typespeed 0.6.5-7 kkeen Complete eschwartz
x86_64 Community ultimate-ircd Complete bgyorgy
x86_64 Community umurmur 0.2.17-12 anthraxx Complete eschwartz
x86_64 Community unrealircd 4.2.0-1 spupykin Complete spupykin
x86_64 Extra usbmuxd 1.1.0+48+g1cc8b34-2 grazzolini Complete arojas
x86_64 Community vault 0.11.5-1 shibumi Complete eschwartz
x86_64 Community wireshark-cli 2.6.5-1 anthraxx Complete eschwartz
x86_64 Extra x2goserver 4.1.0.3-1 andyrtr Complete andyrtr
x86_64 Community xmms2 0.8DrO_o.949.gca15e830-12 Complete eschwartz
x86_64 Community zeroc-ice 3.7.1-1 svenstaro Complete svenstaro
x86_64 Community ziproxy 3.3.1-2 spupykin Complete eschwartz