GNU bug report logs - #79424
30.2; shell-mode doesn't hide password

Previous Next

Package: emacs;

Reported by: André A. Gomes <andremegafone <at> gmail.com>

Date: Wed, 10 Sep 2025 15:10:02 UTC

Severity: normal

Found in version 30.2

Fixed in version 31.1

Done: Michael Albinus <michael.albinus <at> gmx.de>

Full log


View this message in rfc822 format

From: Michael Albinus <michael.albinus <at> gmx.de>
To: André A. Gomes <andremegafone <at> gmail.com>
Cc: 79424 <at> debbugs.gnu.org
Subject: bug#79424: 30.2; shell-mode doesn't hide password
Date: Wed, 10 Sep 2025 18:56:09 +0200
André A. Gomes <andremegafone <at> gmail.com> writes:

> Hello,

Hi André,

> I'm using shell-mode to copy a file to a remote machine:
>
> scp /file/path host-name:/file/path
>
> The ssh connection requires inserting the password and I'd expect that
> shell-mode would replace each of the characters with a placeholder (like
> asterisks).  However, it exposes the password on the screen.

In shell-mode, it is tracked whether a password prompt appears. Then the
password is read with hidden characters in the minibuffer. Terchnically,
this is implemented by adding comint-watch-for-password-prompt to
comint-output-filter-functions. What is the value of that variable in
your shell buffer?

The check is performed using comint-password-prompt-regexp. What is the
value of that variable, and the password prompt, in your shell buffer?

> Thanks.

Best regards, Michael.




This bug report was last modified today.

Previous Next


GNU bug tracking system
Copyright (C) 1999 Darren O. Benham, 1997,2003 nCipher Corporation Ltd, 1994-97 Ian Jackson.