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.
To add a comment to this bug, you must first unarchive it, by sending
a message to control AT debbugs.gnu.org, with unarchive 16374 in the body.
You can then email your comments to 16374 AT debbugs.gnu.org in the normal way.
Toggle the display of automated, internal messages from the tracker.
Report forwarded
to
bug-gnu-emacs <at> gnu.org
:
bug#16374
; Package
emacs
.
(Mon, 06 Jan 2014 16:53:01 GMT)
Full text and
rfc822 format available.
Acknowledgement sent
to
Tyler Smith <tyler <at> plantarum.ca>
:
New bug report received and forwarded. Copy sent to
bug-gnu-emacs <at> gnu.org
.
(Mon, 06 Jan 2014 16:53:02 GMT)
Full text and
rfc822 format available.
Message #5 received at submit <at> debbugs.gnu.org (full text, mbox):
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
Bzr revision: 115821 eliz <at> gnu.org-20131231160134-l7omrq232pdxvdnt
Windowing system distributor `The X.Org Foundation', version 11.0.11405000
System Description: Debian GNU/Linux unstable (sid)
Important settings:
value of $LANG: en_CA.utf8
locale-coding-system: utf-8-unix
Major mode: Shell
Minor modes in effect:
shell-dirtrack-mode: t
tooltip-mode: t
electric-indent-mode: t
mouse-wheel-mode: t
tool-bar-mode: t
menu-bar-mode: t
file-name-shadow-mode: t
global-font-lock-mode: t
font-lock-mode: t
blink-cursor-mode: t
auto-composition-mode: t
auto-encryption-mode: t
auto-compression-mode: t
line-number-mode: t
transient-mark-mode: t
Recent input:
M-o M-x M-x s h e l l <return> m o u n t SPC n - <tab>
<return> n o t m y r e a l p a s s w o r d <return> M-o C-g M-x
r e p o <tab> r t <tab> <return>
Recent messages:
For information about GNU Emacs and the GNU system, type C-h C-a.
M-o M-x is undefined
M-o C-g is undefined
Making completion list...
Load-path shadows:
None found.
Features:
(shadow sort gnus-util mail-extr emacsbug message format-spec rfc822 mml
mml-sec mm-decode mm-bodies mm-encode mail-parse rfc2231 mailabbrev
gmm-utils mailheader sendmail rfc2047 rfc2045 ietf-drums mm-util
help-fns mail-prsvr mail-utils help-mode easymenu pcmpl-linux shell
pcomplete comint ansi-color ring time-date tooltip electric uniquify
ediff-hook vc-hooks lisp-float-type mwheel x-win x-dnd tool-bar dnd
fontset image regexp-opt fringe tabulated-list newcomment lisp-mode
prog-mode register page menu-bar rfn-eshadow timer select scroll-bar
mouse jit-lock font-lock syntax facemenu font-core frame cham georgian
utf-8-lang misc-lang vietnamese tibetan thai tai-viet lao korean
japanese hebrew greek romanian slovak czech european ethiopic indian
cyrillic chinese case-table epa-hook jka-cmpr-hook help simple abbrev
minibuffer nadvice loaddefs button faces cus-face macroexp files
text-properties overlay sha1 md5 base64 format env code-pages mule
custom widget hashtable-print-readable backquote make-network-process
dbusbind gfilenotify dynamic-setting system-font-setting
font-render-setting move-toolbar gtk x-toolkit x multi-tty emacs)
Forcibly Merged 16374 20910.
Request was from
Stefan Kangas <stefan <at> marxist.se>
to
control <at> debbugs.gnu.org
.
(Wed, 02 Oct 2019 12:06:01 GMT)
Full text and
rfc822 format available.
Disconnected #16374 from all other report(s).
Request was from
Stefan Kangas <stefan <at> marxist.se>
to
control <at> debbugs.gnu.org
.
(Sun, 06 Oct 2019 01:30:03 GMT)
Full text and
rfc822 format available.
Information forwarded
to
bug-gnu-emacs <at> gnu.org
:
bug#16374
; Package
emacs
.
(Sun, 06 Oct 2019 01:41:02 GMT)
Full text and
rfc822 format available.
Message #12 received at 16374 <at> debbugs.gnu.org (full text, mbox):
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
Reply sent
to
Stefan Kangas <stefan <at> marxist.se>
:
You have taken responsibility.
(Thu, 07 Nov 2019 00:40:02 GMT)
Full text and
rfc822 format available.
Notification sent
to
Tyler Smith <tyler <at> plantarum.ca>
:
bug acknowledged by developer.
(Thu, 07 Nov 2019 00:40:05 GMT)
Full text and
rfc822 format available.
Message #17 received at 16374-done <at> debbugs.gnu.org (full text, mbox):
Stefan Kangas <stefan <at> marxist.se> writes:
> 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.)
The original issue seems to be solved here. More information was
requested on how to write a test case for this, but none was given
within 4 weeks. I'm therefore closing this bug.
If someone could provide an example of what a CIFS prompt
realistically looks like, please report back so we can add it to the
test suite. Finally, if anyone is still seeing this on Emacs 27
despite the above, please reopen the bug report.
Best regards,
Stefan Kangas
Information forwarded
to
bug-gnu-emacs <at> gnu.org
:
bug#16374
; Package
emacs
.
(Thu, 07 Nov 2019 15:26:02 GMT)
Full text and
rfc822 format available.
Message #20 received at 16374-done <at> debbugs.gnu.org (full text, mbox):
On Wed, Nov 6, 2019, at 7:39 PM, Stefan Kangas wrote:
> Stefan Kangas <stefan <at> marxist.se> writes:
> >
> > 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?
Unfortunately I can't. Our IT has changed the file server, and the new system doesn't work at all for me, in Emacs or otherwise.
> The original issue seems to be solved here. More information was
> requested on how to write a test case for this, but none was given
> within 4 weeks. I'm therefore closing this bug.
Yes, sorry I didn't respond sooner. Since I can no longer reproduce the bug or provide any further info, closing it is entirely appropriate.
Best,
Tyler
Information forwarded
to
bug-gnu-emacs <at> gnu.org
:
bug#16374
; Package
emacs
.
(Thu, 07 Nov 2019 23:56:01 GMT)
Full text and
rfc822 format available.
Message #23 received at 16374-done <at> debbugs.gnu.org (full text, mbox):
Tyler Smith <tyler <at> plantarum.ca> writes:
> Since I can no longer reproduce the bug or provide any further info, closing it is entirely appropriate.
Thank you for reporting back, and for the initial bug report.
Best regards,
Stefan Kangas
bug archived.
Request was from
Debbugs Internal Request <help-debbugs <at> gnu.org>
to
internal_control <at> debbugs.gnu.org
.
(Fri, 06 Dec 2019 12:24:06 GMT)
Full text and
rfc822 format available.
This bug report was last modified 5 years and 254 days ago.
Previous Next
GNU bug tracking system
Copyright (C) 1999 Darren O. Benham,
1997,2003 nCipher Corporation Ltd,
1994-97 Ian Jackson.