#1138601 su: unexpectedly asks for the password again after Ctri+D ver 2.41

Package:
util-linux
Source:
util-linux
Description:
miscellaneous system utilities
Submitter:
Alexander Ermakov
Date:
2026-06-08 14:25:01 UTC
Severity:
normal
Tags:
#1138601#5
Date:
2026-06-01 01:58:03 UTC
From:
To:
su unexpectedly asks for the password again after Ctri+D:

fox@deb13:~$ LANG=ru_RU.UTF-8 su
Пароль: [Ctrl+D]
Password: [real password]
su: Сбой при проверке подлинности
fox@deb13:~$ LANG= su
Password: [Ctrl+D]
Password: [real password]
su: Authentication failure

In Debian sid (util-linux 2.42-6) the behavior is already as expected.

#1138601#10
Date:
2026-06-03 20:28:01 UTC
From:
To:
Hi,

thank you for your report, unfortunately I cannot reproduce this...

On my machines:

% LANG=ru_RU.UTF-8 su
Пароль:
su: Сбой при проверке подлинности

Maybe you have a PAM config that interferes on the non-working
systems?

Best,
Chris

#1138601#17
Date:
2026-06-05 01:45:39 UTC
From:
To:
04.06.2026 03:28, Chris Hofstaedtler:
 > thank you for your report, unfortunately I cannot reproduce this...

Thanks for the answer!

I tested it on another machine with the latest updates installed
(Trixie). The problem is not reproduced too.

I can assume that the problem is that I installed libc6 from sid:

#1138601#22
Date:
2026-06-08 06:33:43 UTC
From:
To:
04.06.2026 03:28, Chris Hofstaedtler:

# apt install libpam-winbind

No special settings. Just install an additional package.

logs:

июн 07 13:49:33 deb13 su[868728]: pam_unix(su:auth): auth could not
identify password for [root]
июн 07 13:49:33 deb13 su[868728]: pam_winbind(su:auth): getting password
(0x00000388)
июн 07 13:49:36 deb13 su[868728]: pam_winbind(su:auth): request
wbcLogonUser failed: WBC_ERR_AUTH_ERROR, PAM error: PAM_USER_UNKNOWN
(10), NTSTATUS: NT_STATUS_NO_SUCH_USER, Error message was: The specified
account does not exist.
июн 07 13:49:36 deb13 su[868728]: FAILED SU (to root) fox on pts/4

# apt-file search pam_winbind.so
libpam-winbind: /usr/lib/x86_64-linux-gnu/security/pam_winbind.so

# apt show libpam-winbind
Package: libpam-winbind
Version: 2:4.22.8+dfsg-0+deb13u2

#1138601#27
Date:
2026-06-08 14:23:43 UTC
From:
To:
of winbind, /usr/share/pam-configs/winbind:

Auth:
         [success=end default=ignore]    pam_winbind.so krb5_auth
krb5_ccache_type=FILE cached_login try_first_pass

Note try_first_pass.  It uses password which is set by another module,
or ask for the password if no password has been set before.

/usr/share/pam-configs/krb5 from libpam-heimdal does the same:

Auth:
         [success=end default=ignore]    pam_krb5.so minimum_uid=1000
try_first_pass


and so on.

It looks like the whole thing is configured as expected, it's just
that Ctrl+D in this context is not expected at all, - it is treated
as an error by pam_unix (the usual first module in the stack), so
password is not set, and any subsequent module with try_first_pass
will ask for the password once again.

In short, "Doctor, it hurts when I do this" -- "So don't do this".
I thinks.

Thanks,

/mjt