Control: tags -1 + wontfix

Hello 積丹尼 Dan Jacobson,

On Thu, Feb 14, 2019 at 09:23:45AM +0800, 積丹尼 Dan Jacobson wrote:
> Package: util-linux
> Version: 2.33.1-0.1
> 
> Can you believe this error message is written to STDOUT

I can fully understand how it can easily be interpretted as an
error message. In fact this message doesn't even come from su,
but from the users shell. Once the shell execs we're past su already.

> 
>     # su -c : nobody|wc
>           1       6      41
>     # su -c : nobody
>     This account is currently not available.

The message in question comes from "nologin" program (which in debian
is built from src:shadow, not src:util-linux even though both
implementations are outputting to stdout rather than stderr).

The entire purpose of the nologin program is to display a human friendly
greeting message, which thus makes sense to write to stdout rather than
stderr.

How ever weird it may seem, the message indicates everything worked
as expected an no error occured! :P

My conclusion is thus that this peculiarity is "by design" rather than
a mistake. (And personally I don't see much value in the "nologin" tool
at all, would be better to just have such login attempts fail with a
proper error message.)
I'm thus tagging this as wontfix. If you disagree with that, then please
go discuss this with the people who have actual influence over the
design upstream (but I guess they might feel they're not responsible for
ancient unix design and might feel uneasy about changing the heritage).

> 
> instead of STDERR!
> 

FWIW, the util-linux source has this message at:
https://sources.debian.org/src/util-linux/2.33.1-0.1/login-utils/nologin.c/#L87
(And finding it in src:shadow is left as an excersise to the reader.)

Regards,
Andreas Henriksson

Reply via email to