GNU bug report logs -
#16374
password not hidden in shell when mounting cifs partition
Previous Next
Reported by: Tyler Smith <tyler <at> plantarum.ca>
Date: Mon, 6 Jan 2014 16:53:01 UTC
Severity: minor
Found in version 24.4
Done: Stefan Kangas <stefan <at> marxist.se>
Bug is archived. No further changes may be made.
Full log
View this message in rfc822 format
Tyler Smith <tyler <at> plantarum.ca> writes:
> I'm not sure if this is really an Emacs bug, or just a limitation of *shell*
>
> Starting from emacs -Q:
> M-x shell
> mount ./network-drive
> ;; (fstab for this drive is:
> //<network.location>/<folder>$/ /home/user/network-drive cifs
> noauto,users,user=<my username on the network>,uid=<my local
> username>,rw 0 0
> ;; )
>
> ;; I am now prompted for my network password. When I enter it and press
> ;; return I see this:
> Password for <user>@//<network.location>/<folder>$/: <my password in
> plain text>
> ********
>
> The point is, the asterisks should be appearing in place of my actual
> password. Instead, they appear in addition to my password.
>
> Thanks for your time,
>
> Tyler
>
> In GNU Emacs 24.3.50.1 (i686-pc-linux-gnu, GTK+ Version 3.8.6)
> of 2013-12-31 on ONOTTAR654746
Hi Tyler,
Thanks for the bug report. Sorry that it went unanswered for so long.
When I try the following on Emacs 26.1, I get no error:
(progn
(require 'comint)
(string-match comint-password-prompt-regexp
"Password for foo@//example.org/foo/bar$/: "))
This suggests to me that a prompt such as the above should work under
M-x shell, since that is built on top of comint.
Could you verify that this works for you on Emacs 26.1?
Could you also please tell me if:
"Password for foo@//example.org/foo/bar$/: "
is a good example of the kind of prompt you get when mounting a cifs
partition? (I'm trying to find a good example to add to the test
suite for comint-password-prompt-regexp.)
Best regards,
Stefan Kangas
This bug report was last modified 5 years and 255 days ago.
Previous Next
GNU bug tracking system
Copyright (C) 1999 Darren O. Benham,
1997,2003 nCipher Corporation Ltd,
1994-97 Ian Jackson.