#1141614 opensysusers: error when installing dnsmasq-base

#1141614#5
Date:
2026-07-07 08:30:27 UTC
From:
To:
Dear Maintainer,

when installing dnsmasq, I met this error:

Setting up dnsmasq-base (2.93-1) ...
useradd: invalid comment 'u! dnsmasq -:nogroup dnsmasq /var/lib/misc'
usermod: user 'dnsmasq' does not exist

/usr/lib/sysusers.d/dnsmasq-base.conf looks like this:

  u! dnsmasq -:nogroup dnsmasq /var/lib/misc

And the sysusers.d man page says:

"Type u may be suffixed with an exclamation mark ("u!") to create
a fully locked account. This is recommended, since logins should
typically not be allowed for system users. With or without the
exclamation mark an invalid password is set. For "u!", the account
is also locked, which makes a difference for non-password forms of
authentication, such as SSH or similar.

Added in version 257."

It seems this isn't handled yet by opensysusers.

#1141614#10
Date:
2026-07-07 08:47:30 UTC
From:
To:
Sorry, wrong analysis of the problem. This change to
/usr/lib/sysusers.d/dnsmasq-base.conf works:

  u! dnsmasq -:nogroup "dnsmasq" /var/lib/misc

I.e. the quotes in the GECOS field are needed for opensysusers.
According to the systemd sysusers.d man page quotes are always
needed, so this should be a dnsmasq bug.