🚀 go-pugleaf

RetroBBS NetNews Server

Inspired by RockSolid Light RIP Retro Guy

Article View: linux.debian.user
Article #130

systemd-ask-password --no-tty not working in trixie

#130
From: Steffen Wurm
Date: Thu, 15 Oct 2026 07:30
70 lines
4422 bytes
Hello,

as part of some startup scripts, a password is asked via "systemd-ask-password --no-tty".
If a wrong password in provided via "systemd-tty-ask-password-agent", "systemd-ask-password --no-tty" will ask again and write a broadcast to all terminals, therefore the admin is informed to retry.

Since Trixie, this does not work via SSH anymore.

----- bookworm -----
# systemd-ask-password --no-tty --timeout 1 foobar

Broadcast message from root@host (Thu 2026-10-15 07:38:06 CEST):

Password entry required for 'foobar' (PID 1777541).
Please enter password with the systemd-tty-ask-password-agent tool.

Failed to query password: Timer expired
#
----- trixie -----
# systemd-ask-password --no-tty --timeout 1 foobar
Failed to query password: Timer expired
#
-----

There is even a service, that seems to be responsible for those messages, but that does not seem to be helping.

----- trixie -----
# systemctl status systemd-ask-password-wall.service
● systemd-ask-password-wall.service - Forward Password Requests to Wall
      Loaded: loaded (/lib/systemd/system/systemd-ask-password-wall.service; static)
      Active: active (running) since Thu 2026-10-15 07:11:06 CEST; 28min ago
[...]
# systemctl status systemd-ask-password-wall.path
● systemd-ask-password-wall.path - Forward Password Requests to Wall Directory Watch
      Loaded: loaded (/usr/lib/systemd/system/systemd-ask-password-wall.path; static)
      Active: active (running) since Mon 2026-10-05 06:04:00 CEST; 1 week 3 days ago
-----


I found these bugs, that seem to be related:
https://bugs.debian.org/cgi-bin/bugreport.cgi?bug=1115259
https://bugs.debian.org/cgi-bin/bugreport.cgi?bug=1087642
https://bugs.debian.org/cgi-bin/bugreport.cgi?bug=1075733

Can anyone test, if this problem exists in testing/unstable as well?
The Problem is NOT present in archlinux using systemd 262-1. It works just fine, there.

Can anyone test this in unstable? I'd like to know if it is a problem specific to Debian or systemd. I would assume, systemd's service doing it's job, when they killed "the wall".
https://github.com/systemd/systemd/issues/24971

If it is a Debian specific problem, I would hope to find some configuration, that just needs to be done.


Kind Regards
Steffen

-- 
Steffen Wurm
Administration Informationstechnologie

Tel.: +49 (0) 23 24 / 96 48-845
E-Mail: steffen.wurm@resol.de
www: https://www.resol.de

-------------------------------------------------------------------------------
RESOL - Elektronische Regelungen GmbH
Heiskampstr. 10
45527 Hattingen / Germany
Geschäftsführer: Isabel Pfeil, Marcel Pfeil, Rudolf Pfeil
Amtsgericht - Registergericht - Essen - HRB 15674
-------------------------------------------------------------------------------
Technical Details
Message-ID: <NOo4x-5DK9-7@gated-at.bofh.it>
Path: mbox-mo1.pugleaf.net!archive.usenet.blueworldhosting.com!usenet.blueworldhosting.com!diablo1.usenet.blueworldhosting.com!news.corradoroberto.it!diesel.cu.mi.it!bofh.it!news.nic.it!robomod

Show Full Headers
Complete Article Headers
Path: mbox-mo1.pugleaf.net!archive.usenet.blueworldhosting.com!usenet.blueworldhosting.com!diablo1.usenet.blueworldhosting.com!news.corradoroberto.it!diesel.cu.mi.it!bofh.it!news.nic.it!robomod
From: Steffen Wurm <debian-wurm@resol.de>
Newsgroups: linux.debian.user
Subject: systemd-ask-password --no-tty not working in trixie
Date: Thu, 15 Oct 2026 09:30:01 +0200
Message-ID: <NOo4x-5DK9-7@gated-at.bofh.it>
X-Mailbox-Line: From debian-user-request@lists.debian.org  Thu Oct 15 07:27:09 2026
Old-Return-Path: <debian-wurm@resol.de>
X-Amavis-Spam-Status: No, score=-2.1 tagged_above=-10000 required=5.3
 tests=[BAYES_00=-1.9, DKIM_SIGNED=0.1, DKIM_VALID=-0.1, DKIM_VALID_AU=-0.1,
 DKIM_VALID_EF=-0.1] autolearn=ham autolearn_force=no
X-Policyd-Weight: using cached result; rate: -4.6
X-Greylist: delayed 465 seconds by postgrey-1.37 at bendel; Thu, 15 Oct 2026 07:09:23 UTC
MIME-Version: 1.0
User-Agent: Mozilla Thunderbird
Content-Language: en-US, de-DE
Content-Type: text/plain; charset=UTF-8; format=flowed
Content-Transfer-Encoding: 8bit
X-Mailing-List: <debian-user@lists.debian.org> archive/latest/832413
List-ID: <debian-user.lists.debian.org>
List-URL: <https://lists.debian.org/debian-user/>
List-Archive: https://lists.debian.org/msgid-search/42ea907f-fbc4-4f0e-a34e-f1754b1e89c6@resol.de
Approved: robomod@news.nic.it
Lines: 70
Organization: linux.* mail to news gateway
Sender: robomod@news.nic.it
X-Original-Date: Thu, 15 Oct 2026 09:01:29 +0200
X-Original-Message-ID: <42ea907f-fbc4-4f0e-a34e-f1754b1e89c6@resol.de>