Reply To: OpenSSH-server package regression strikes again!

Forum › Forums › Official Releases › antiX-26 “Stephen Kapos” › OpenSSH-server package regression strikes again! › Reply To: OpenSSH-server package regression strikes again!

#205821
sybok
Member

    I downloaded Debian’s ‘openssh-server’ DEB package from ‘<Debian mirror of your choice>/pool/main/o/openssh/openssh-server_10.0p1-7~bpo12+1_amd64.deb’.
    Entering the archive using ‘mc’.
    The script ‘DEBIAN/postrm’ contains removal of the user ‘sshd’ (‘deluser –quiet sshd > /dev/null’).
    On the other hand both ‘DEBIAN/preinst’ and ‘DEBIAN/postinst’ do not create such a user.

    I would assume this is a Debian bug and the workaround suggested by @Robin might actually do the job.
    This Debian thread might help with set up the user correctly (it seems that it needs no home among others): https://lists.debian.org/debian-user/2002/07/msg00319.html

    Some information from my system:

    $ grep sshd /etc/passwd
    sshd:x:105:65534::/run/sshd:/usr/sbin/nologin
    $ id sshd
    uid=105(sshd) gid=65534(nogroup) groups=65534(nogroup)

    where ‘nogroup’ is a valid group in ‘/etc/group’ with id 65534.

    EDIT: Strange; I installed it in a VirtualBox Debian 13 machine that I have available and it installed fine, the user is present (I forgot to check before installing 🙁 ); may be its presence is implicitly assumed and not tested, which would be a bug anyway.

    • This reply was modified 3 months, 3 weeks ago by sybok.