From 55885dee96de06989b2d0983b5d4aa713a390500 Mon Sep 17 00:00:00 2001 From: ykla Date: Mon, 25 Aug 2025 23:43:54 +0800 Subject: [PATCH 1/2] Clarify sudo password prompt MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit Update the sudo lecture message to make it explicit that the password will not be echoed in any form — not even as '*'. This improves clarity for users, emphasizing that nothing will be displayed during password input. Signed-off-by: ykla --- plugins/sudoers/check.c | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/plugins/sudoers/check.c b/plugins/sudoers/check.c index 461cae292e..c43fbaf3f0 100644 --- a/plugins/sudoers/check.c +++ b/plugins/sudoers/check.c @@ -300,7 +300,8 @@ display_lecture(struct sudo_conv_callback *callback) " #3) With great power comes great responsibility.\n\n"); if (!def_pwfeedback) { msg[1].msg_type = SUDO_CONV_ERROR_MSG|SUDO_CONV_PREFER_TTY; - msg[1].msg = _("For security reasons, the password you type will not be visible.\n\n"); + msg[1].msg = _("For security reasons, the password you type will not be echoed in any form —\n" + "not even as '***'. You won't see anything at all.\n\n"); msgcount++; } sudo_conv(msgcount, msg, repl, NULL); From 5859969a7f85a2270b47792ebb346219a331def7 Mon Sep 17 00:00:00 2001 From: ykla Date: Mon, 25 Aug 2025 23:50:13 +0800 Subject: [PATCH 2/2] typo --- plugins/sudoers/check.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/plugins/sudoers/check.c b/plugins/sudoers/check.c index c43fbaf3f0..3e6ab32a04 100644 --- a/plugins/sudoers/check.c +++ b/plugins/sudoers/check.c @@ -301,7 +301,7 @@ display_lecture(struct sudo_conv_callback *callback) if (!def_pwfeedback) { msg[1].msg_type = SUDO_CONV_ERROR_MSG|SUDO_CONV_PREFER_TTY; msg[1].msg = _("For security reasons, the password you type will not be echoed in any form —\n" - "not even as '***'. You won't see anything at all.\n\n"); + "not even as '***'. You won't see anything at all on your screen.\n\n"); msgcount++; } sudo_conv(msgcount, msg, repl, NULL);