[Pkg-xmpp-devel] Bug#1100030: why adduser in preinst?

Marc Haber mh+debian-packages at zugschlus.de
Tue Mar 11 11:13:04 GMT 2025


Hi Simon,

On Tue, Mar 11, 2025 at 08:34:46AM +0100, Simon Josefsson wrote:
>> A single call of
>> adduser --system --group --home=/var/lib/jabberd2 --no-create-home jabber
>> will already do it.
>
>Thanks -- I suspect the actual reason may be lost in time.  What is the
>exact patch you are thinking of, is it the one below?  I'm happy to
>apply it and see of Salsa is happy and then upload and see if we get any
>reports.

Actually, just doing
adduser --system --group --home=/var/lib/jabberd2 --no-create-home jabber
in postinst without any scaffolding SHOULD give you what you want. If it 
doesn't, it's a bug in adduser which I would ask you to report.

If you apply this for trixie, you might need a versioned dependency on 
adduser >= 3.145 or test with bookworm's adduser as well (it might be 
non-silent on the console but should yield the same results).

Greetings
Marc

-- 
-----------------------------------------------------------------------------
Marc Haber         | "I don't trust Computers. They | Mailadresse im Header
Leimen, Germany    |  lose things."    Winona Ryder | Fon: *49 6224 1600402
Nordisch by Nature |  How to make an American Quilt | Fax: *49 6224 1600421



More information about the Pkg-xmpp-devel mailing list