#1128803 opensysusers: openssh fails to create _ssh group

Package:
opensysusers
Source:
opensysusers
Submitter:
Samuel Thibault
Date:
2026-05-29 20:45:02 UTC
Severity:
normal
Tags:
#1128803#5
Date:
2026-02-22 23:01:48 UTC
From:
To:
Hello,

As can be seen in the latest e.g. gvfs build failures:

https://buildd.debian.org/status/logs.php?pkg=gvfs&arch=hurd-i386

opensysusers' systemd-sysusers fails to create the _ssh group:

Setting up openssh-client (1:10.2p1-5) ...
groupadd: invalid group ID ''
chgrp: invalid group: ‘_ssh’
dpkg: error processing package openssh-client (--configure):
 old openssh-client package postinst maintainer script subprocess failed with exit status 1

the content of openssh-client.conf is just

g _ssh

I guess opensysusers somehow doesn't like not having even "- -", while
systemd is fine with that.

Samuel

#1128803#10
Date:
2026-03-01 11:51:31 UTC
From:
To:
Control: tags -1 + patch

What do you think of this patch?

diff --git a/sysusers b/sysusers
index 0e09217..8e5187d 100755
--- a/sysusers
+++ b/sysusers
@@ -81,7 +81,7 @@ parse_string() {
        #eval "set -- $1" # do not  use eval, see CVE-2021-40084
        set -- $1
        suffix="${1#?}"
-       type="${1%%${suffix}}" name="$2" id="$3" gecos="$4" home="$5"
+       type="${1%%${suffix}}" name="$2" id="${3:--}" gecos="${4:--}" home="$5"

        # and now set the GECOS field without eval
        if [ "${type}" = u ]; then

#1128803#17
Date:
2026-03-01 14:35:17 UTC
From:
To:
Hello,

Andrew Bower, le dim. 01 mars 2026 11:51:31 +0000, a ecrit:

It does work fine indeed.

Thanks,
Samuel

#1128803#22
Date:
2026-03-01 16:18:31 UTC
From:
To:
There is a question of whether upstream would accept [1] a patch for
behaviour not covered in the spec and if not whether to carry a
permanent delta in the Debian package.

My feeling is it is best to support the files that are in actual use in
packages otherwise the package simply won't be useful for Debian users!

[1] https://github.com/cromerc/opensysusers/issues/5#issuecomment-2352877003

#1128803#27
Date:
2026-04-04 21:11:02 UTC
From:
To:
Control: forwarded -1 https://github.com/cromerc/opensysusers/issues/6
Control: tags -1 + upstream

Ah, it looks like tachi has already covered this scenario in the
abstract with upstream and provided a more general patch:
https://github.com/cromerc/opensysusers/issues/6

#1128803#38
Date:
2026-05-29 20:43:02 UTC
From:
To:
We believe that the bug you reported is fixed in the latest version of
opensysusers, which is due to be installed in the Debian FTP archive.

A summary of the changes between this version and the previous one is
attached.

Thank you for reporting the bug, which will now be closed.  If you
have further comments please address them to 1128803@bugs.debian.org,
and the maintainer will reopen the bug report if appropriate.

Debian distribution maintenance software
pp.
Andrea Pappacoda <tachi@debian.org> (supplier of updated opensysusers package)

(This message was generated automatically at their request; if you
believe that there is a problem with it please contact the archive
administrators by mailing ftpmaster@ftp-master.debian.org)
Format: 1.8
Date: Fri, 29 May 2026 22:09:18 +0200
Source: opensysusers
Architecture: source
Version: 0.7.5-1
Distribution: unstable
Urgency: medium
Maintainer: Andrea Pappacoda <tachi@debian.org>
Changed-By: Andrea Pappacoda <tachi@debian.org>
Closes: 1128803 1134601
Changes:
 opensysusers (0.7.5-1) unstable; urgency=medium
 .
   * New upstream version 0.7.5.
     Closes: #1128803, #1134601
   * d/patches: drop upstreamed patches
Checksums-Sha1:
 0e28f87f660885dab539be3b8d80e1d69572d5a9 1515 opensysusers_0.7.5-1.dsc
 979d2c0ee7c85b731278cbfdded17dd15680fe70 28571 opensysusers_0.7.5.orig.tar.gz
 0b34a242d86887c3d21b31f8f82c19637c1dd371 5748 opensysusers_0.7.5-1.debian.tar.xz
Checksums-Sha256:
 111a857203247e1d5bbae1e34404614dab828d28e205a0040c43d3b943ebafc2 1515 opensysusers_0.7.5-1.dsc
 4267a52c7948d5e3230253a8620d1e702466fb809da1787554bca168dfa0af56 28571 opensysusers_0.7.5.orig.tar.gz
 6f9245c5cf8bcec79e41a1c73b59cc6f12c82d9777dd348f7456d7e3dedb413f 5748 opensysusers_0.7.5-1.debian.tar.xz
Files:
 1634e350e04ab4c519cc0dec396f33ba 1515 admin optional opensysusers_0.7.5-1.dsc
 b47348caf02ebfad103d85be61025c5d 28571 admin optional opensysusers_0.7.5.orig.tar.gz
 ca24e1b3e4d7ee244531d9f71b4c1111 5748 admin optional opensysusers_0.7.5-1.debian.tar.xz
-----BEGIN PGP SIGNATURE-----

iIcEARYKAC8WIQS6VuNIvZRFHt7JcAdKkgiiRVB3pwUCahn05BEcdGFjaGlAZGVi
aWFuLm9yZwAKCRBKkgiiRVB3p0sEAP9jE1++CdDAujQMN3X1J3qxTP8LaCNOpSpi
5T77nfXJCgEAhRZJP0lIo15+B1dpFmaM7BoZivadnW3uCr5XDXw44wM=
=du2L
-----END PGP SIGNATURE-----