On Sat, Apr 26, 2025 at 07:20:38PM +0200, Chris Hofstaedtler wrote:
> On Sat, Apr 26, 2025 at 05:26:33PM +0200, Geert Stappers wrote:
> > Package: radvd
> > 
> > Wish: Do `adduser _radvd` on new installs.
> > Actual: Make it possible to increase Standards-Version.
> > 
> > 
> > Standards-Version 4.5.0
> > Released January, 2020.
> > 
> > 9.2.1
> >    When maintainers choose a new hardcoded or dynamically generated
> >    username for packages to use, they should start this username with
> >    an underscore.
> 
> radvd picked a username in the past,
> it is not picking a new username.

The plan is to pick a new username ....

--- a/debian/radvd.postinst
+++ b/debian/radvd.postinst
@@ -3,8 +3,8 @@
 set -e
 
 if [ "" = configure ]; then
-  if ! getent passwd radvd >/dev/null; then
-    adduser --quiet --system --no-create-home --home /run/radvd radvd
+  if ! getent passwd _radvd >/dev/null; then
+    adduser --quiet --system --no-create-home --home /run/radvd _radvd
   fi
   for i in /run/radvd; do
     if dpkg-statoverride --list  >/dev/null; then
--- a/debian/radvd.init
+++ b/debian/radvd.init
@@ -16,7 +16,7 @@ DESC=radvd
 CONFIG=/etc/radvd.conf
 PIDDIR=/var/run/radvd
 PIDFILE=/radvd.pid
-OPTIONS="-u radvd -p "
+OPTIONS="-u _radvd -p "
 PROC_SYS_IP6_FORWARDING=/proc/sys/net/ipv6/conf/all/forwarding
 
 . /lib/lsb/init-functions


> There is no requirement to change the username

acknowledge

Advantage I see is that systems getting a system user
that can by the leading underscore easily identified as system user.

> and it's probably a bad idea.
 
One disadvantage I see is upgraded systems getting user 'radvd' un-used.
And only upgraded systems get that unused system user.

Now asking debian-devel@lists.debian.org for their view on this rename.


Groeten
Geert Stappers
Debian Maintainer of the radvd package
-- 
Silence is hard to parse

Attachment: signature.asc
Description: PGP signature

Reply via email to