🚀 go-pugleaf

RetroBBS NetNews Server

Inspired by RockSolid Light RIP Retro Guy

Thread View: linux.debian.user
4 messages
4 total messages Started by Steffen Wurm Thu, 15 Oct 2026 07:30
systemd-ask-password --no-tty not working in trixie
#130
Author: 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
-------------------------------------------------------------------------------
Re: systemd-ask-password --no-tty not working in trixie
#131
Author: didier gaumet
Date: Thu, 15 Oct 2026 09:50
10 lines
2223 bytes
Hello Steffen,

Be warned: I really know almost nothing about networking.

 From the bug reports you mention, I understand -perhaps totally 
wrongly- that TTY info being not transmitted by SSH can harm wall execution?

Therefore, is there a possibility that in your Archlinux system SSH is 
invoked with a -t option or a RequestTTY option in ssh_config, while in 
your Debian Trixie system, it is not?
Re: systemd-ask-password --no-tty not working in trixie
#132
Author: Greg Wooledge
Date: Thu, 15 Oct 2026 12:00
17 lines
2402 bytes
On Thu, Oct 15, 2026 at 09:01:29 +0200, Steffen Wurm wrote:
> 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
> [...]

Does the wall(1) command work for you?  It doesn't for me, and this
is probably related to the discontinuation of the utmp/wtmp files
in Trixie.

https://www.debian.org/releases/stable/release-notes/issues.en.html#the-last-lastb-and-lastlog-commands-have-been-replaced

At least, that's my guess.
Re: systemd-ask-password --no-tty not working in trixie
#142
Author: Steffen Wurm
Date: Fri, 16 Oct 2026 06:20
45 lines
3283 bytes
On Thu, 15 Oct 2026 07:35:54 -0400, didier gaumet wrote:
> Therefore, is there a possibility that in your Archlinux system SSH is invoked with a -t option or a RequestTTY option in ssh_config, while in your Debian Trixie system, it is not?

Unfortunatelly not.

Even when using "-t" to my trixie systems, the problem remains.

$ ssh -t -l root some-host
Last login: Fri Oct 16 07:35:43 2026 from x.x.x.x
root@some-host:~# systemd-ask-password --no-tty --timeout 1 foobar
Failed to query password: Timer expired   # << No wall output here.
root@some-host:~# grep -i code /etc/os-release
VERSION_CODENAME=trixie
root@some-host:~#


$ ssh -t -l root arch
# systemd-ask-password --no-tty --timeout 1 gimmepassword

Broadcast message from root@jumphost (Fri 2026-10-16 07:53:21 CEST):

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

Failed to query password: Timer expired
# grep -i name /etc/os-release
NAME="Arch Linux"
PRETTY_NAME="Arch Linux"
#

-- 
Steffen Wurm
Administration Informationstechnologie

Tel.: +49 (0) 23 24 / 96 48-845
E-Mail: debian-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
-------------------------------------------------------------------------------
Thread Navigation

This is a paginated view of messages in the thread with full content displayed inline.

Messages are displayed in chronological order, with the original post highlighted in green.

Use pagination controls to navigate through all messages in large threads.

Back to All Threads