unofficial mirror of bug-gnu-emacs@gnu.org 
 help / color / mirror / code / Atom feed
* bug#55555: 28.1; Tramp prompting for password even with an existing .authinfo.gpg file
@ 2022-05-21  7:31 Thierry Volpiatto
  2022-05-21 12:51 ` Michael Albinus
  0 siblings, 1 reply; 10+ messages in thread
From: Thierry Volpiatto @ 2022-05-21  7:31 UTC (permalink / raw)
  To: 55555


This is not happening up to Emacs-28.1, this starts happening recently
from emacs-29+.
It asks also to save password in authinfo file when entering password.
Really annoying.
Thanks.


In GNU Emacs 28.1 (build 2, x86_64-pc-linux-gnu, Motif Version 2.3.8, cairo version 1.16.0)
 of 2022-04-20 built on IPad-S340
Windowing system distributor 'The X.Org Foundation', version 11.0.12013000
System Description: Linux Mint 20.3

Configured using:
 'configure CFLAGS=-O8 --with-mailutils --with-cairo --without-dbus
 --without-gconf --without-gsettings --with-x-toolkit=motif'

Configured features:
ACL CAIRO FREETYPE GIF GLIB GMP GNUTLS GPM HARFBUZZ JPEG JSON LCMS2
LIBOTF LIBSELINUX LIBSYSTEMD LIBXML2 M17N_FLT MODULES NOTIFY INOTIFY
PDUMPER PNG RSVG SECCOMP SOUND THREADS TIFF TOOLKIT_SCROLL_BARS X11 XDBE
XIM XPM MOTIF ZLIB

Important settings:
  value of $LANG: fr_FR.UTF-8
  locale-coding-system: utf-8-unix

Major mode: Shell-script

Minor modes in effect:
  sh-electric-here-document-mode: t
  global-undo-tree-mode: t
  undo-tree-mode: t
  psession-mode: t
  psession-savehist-mode: t
  global-git-gutter-mode: t
  git-gutter-mode: t
  display-time-mode: t
  winner-mode: t
  helm-epa-mode: t
  helm-descbinds-mode: t
  helm-adaptive-mode: t
  helm-mode: t
  helm-minibuffer-history-mode: t
  helm-ff-icon-mode: t
  shell-dirtrack-mode: t
  helm-popup-tip-mode: t
  async-bytecomp-package-mode: t
  dired-async-mode: t
  minibuffer-depth-indicate-mode: t
  override-global-mode: t
  tooltip-mode: t
  global-eldoc-mode: t
  show-paren-mode: t
  mouse-wheel-mode: t
  file-name-shadow-mode: t
  global-font-lock-mode: t
  font-lock-mode: t
  auto-composition-mode: t
  auto-encryption-mode: t
  auto-compression-mode: t
  column-number-mode: t
  line-number-mode: t
  transient-mark-mode: t

Load-path shadows:
None found.

Features:
(shadow epa-mail face-remap emacsbug helm-command addressbook-bookmark
mu4e-config org-mu4e mu4e-contrib mu4e-patch mu4e mu4e-org mu4e-view
gnus-art mm-uu mml2015 mm-view mml-smime smime dig gnus-sum gnus-group
gnus-undo gnus-start gnus-dbus gnus-cloud nnimap nnmail mail-source utf7
netrc nnoo gnus-spec gnus-int gnus-range gnus-win mu4e-main mu4e-headers
mu4e-compose mu4e-draft mu4e-actions smtpmail sendmail mu4e-search
mu4e-lists mu4e-bookmarks mu4e-mark mu4e-message shr kinsoku svg
flow-fill hl-line mu4e-contacts mu4e-update mu4e-folders mu4e-server
mu4e-context mu4e-vars mu4e-helpers ido mu4e-meta image-file
image-converter tramp-cache epa-file char-fold tramp-archive tramp-gvfs
dbus make-mode markdown-mode flymake-proc flymake project warnings
cc-mode cc-fonts cc-guess cc-menus cc-cmds cc-styles cc-align cc-engine
cc-vars cc-defs vc-filewise vc-rcs conf-mode ledger-config ledger-mode
ledger-check ledger-texi ledger-test ledger-sort ledger-report
ledger-reconcile ledger-occur ledger-fonts ledger-fontify ledger-state
ledger-complete ledger-schedule ledger-init ledger-xact ledger-post
ledger-exec ledger-navigate eshell esh-cmd esh-ext esh-opt esh-proc
esh-io esh-arg esh-module esh-groups esh-util ledger-context
ledger-commodities ledger-regex jka-compr bug-reference sh-script smie
executable naquadah-theme solar cal-dst holidays hol-loaddefs tv-utils
osm dom yaml-mode undo-tree diff queue rainbow-mode color psession
frameset log-view pcvs-util pcmpl-git cl-indent ffap thingatpt
autocrypt-message message rmc puny rfc822 mml mml-sec mm-decode
mm-bodies mm-encode mail-parse rfc2231 mailabbrev gmm-utils mailheader
autocrypt-gnus gnus nnheader gnus-util rmail rmail-loaddefs rfc2047
rfc2045 mail-utils mm-util mail-prsvr autocrypt-mu4e autocrypt
ietf-drums config-w3m git-gutter mule-util appt diary-lib diary-loaddefs
gud pcomplete-extension pcmpl-unix pcmpl-gnu iterator pcase wdired
dired-extension org-config ob-gnuplot org-crypt net-utils time winner
autotest-mode autoconf-mode woman man ediff ediff-merg ediff-mult
ediff-wind ediff-diff ediff-help ediff-init ediff-util init-helm
helm-ls-git vc-git diff-mode vc vc-dispatcher helm-fd epa derived epg
rfc6068 epg-config helm-epa helm-imenu imenu helm-elisp-package
helm-find helm-org org ob ob-tangle ob-ref ob-lob ob-table ob-exp
org-macro org-footnote org-src ob-comint org-pcomplete org-list
org-faces org-entities noutline outline org-version ob-emacs-lisp
ob-core ob-eval org-table oc-basic bibtex ol rx org-keys oc org-compat
advice org-macs org-loaddefs cal-menu calendar cal-loaddefs
helm-external isearch-light helm-descbinds helm-wikipedia all-the-icons
all-the-icons-faces data-material data-weathericons data-octicons
data-fileicons data-faicons data-alltheicons cus-edit wid-edit
helm-ipython helm-elisp helm-eval edebug backtrace find-func python
tramp-sh helm-bookmark helm-net xml helm-info bookmark pp helm-adaptive
helm-mode helm-misc helm-files image-dired image-mode exif filenotify
tramp tramp-loaddefs trampver tramp-integration files-x tramp-compat
shell pcomplete parse-time iso8601 time-date ls-lisp helm-buffers
helm-occur helm-tags helm-locate helm-grep wgrep-helm wgrep grep compile
text-property-search comint ansi-color ring helm-regexp format-spec
helm-utils helm-help helm-types helm-extensions-autoloads helm-config
helm-autoloads helm helm-core async-bytecomp helm-global-bindings
helm-easymenu helm-source helm-multi-match helm-lib dired-async
dired-aux dired dired-loaddefs async popup diminish cl-extra help-mode
mb-depth server edmacro kmacro avoid cus-load use-package
use-package-ensure use-package-delight use-package-diminish
use-package-bind-key bind-key easy-mmode use-package-core info w3m-load
package browse-url url url-proxy url-privacy url-expand url-methods
url-history url-cookie url-domsuf url-util mailcap url-handlers
url-parse auth-source cl-seq eieio eieio-core cl-macs eieio-loaddefs
password-cache json subr-x map url-vars seq byte-opt gv bytecomp
byte-compile cconv cl-loaddefs cl-lib iso-transl tooltip eldoc paren
electric uniquify ediff-hook vc-hooks lisp-float-type elisp-mode mwheel
term/x-win x-win term/common-win x-dnd tool-bar dnd fontset image
regexp-opt fringe tabulated-list replace newcomment text-mode lisp-mode
prog-mode register page tab-bar menu-bar rfn-eshadow isearch easymenu
timer select scroll-bar mouse jit-lock font-lock syntax font-core
term/tty-colors frame minibuffer cl-generic cham georgian utf-8-lang
misc-lang vietnamese tibetan thai tai-viet lao korean japanese eucjp-ms
cp51932 hebrew greek romanian slovak czech european ethiopic indian
cyrillic chinese composite emoji-zwj charscript charprop case-table
epa-hook jka-cmpr-hook help simple abbrev obarray cl-preloaded nadvice
button loaddefs faces cus-face macroexp files window text-properties
overlay sha1 md5 base64 format env code-pages mule custom widget
hashtable-print-readable backquote threads inotify lcms2 dynamic-setting
font-render-setting cairo motif x-toolkit x multi-tty
make-network-process emacs)

Memory information:
((conses 16 577245 218966)
 (symbols 48 38742 5)
 (strings 32 196018 41597)
 (string-bytes 1 5867596)
 (vectors 16 80365)
 (vector-slots 8 1723339 299596)
 (floats 8 1728 647)
 (intervals 56 5227 1251)
 (buffers 992 152))
<#secure method=pgpmime mode=sign>

-- 
Thierry





^ permalink raw reply	[flat|nested] 10+ messages in thread

* bug#55555: 28.1; Tramp prompting for password even with an existing .authinfo.gpg file
  2022-05-21  7:31 bug#55555: 28.1; Tramp prompting for password even with an existing .authinfo.gpg file Thierry Volpiatto
@ 2022-05-21 12:51 ` Michael Albinus
  2022-05-21 19:08   ` Thierry Volpiatto
                     ` (2 more replies)
  0 siblings, 3 replies; 10+ messages in thread
From: Michael Albinus @ 2022-05-21 12:51 UTC (permalink / raw)
  To: Thierry Volpiatto; +Cc: 55555

Thierry Volpiatto <thievol@posteo.net> writes:

Hi Thierry,

> This is not happening up to Emacs-28.1, this starts happening recently
> from emacs-29+.

Do you use a "sudo" connection? There has been a change in the .authinfo
entry, see etc/NEWS from master:

--8<---------------cut here---------------start------------->8---
*** Proper password prompts for methods "doas", "sudo" and "sudoedit".
The password prompts for these methods reflect now the credentials of
the user requesting such a connection, and not of the user who is the
target.  This has always been needed, just the password prompt and the
related 'auth-sources' entry were wrong.
--8<---------------cut here---------------end--------------->8---

And the Tramp manual says

--8<---------------cut here---------------start------------->8---
   For the methods ‘doas’, ‘sudo’ and ‘sudoedit’ the password of the
user requesting the connection is needed, and not the password of the
target user.  If these connections happen on the local host, an entry
with the local user and local host is used:

     machine HOST port sudo login USER password secret
--8<---------------cut here---------------end--------------->8---

> It asks also to save password in authinfo file when entering password.
> Really annoying.

See the Tramp manual:

--8<---------------cut here---------------start------------->8---
   If no proper entry exists, the password is read interactively.
After successful login (verification of the password), Emacs offers to
save a corresponding entry for further use by ‘auth-source’ backends
which support this.  This can be changed by setting the user option
‘auth-source-save-behavior’ to ‘nil’.
--8<---------------cut here---------------end--------------->8---

> Thanks.

Best regards, Michael.





^ permalink raw reply	[flat|nested] 10+ messages in thread

* bug#55555: 28.1; Tramp prompting for password even with an existing .authinfo.gpg file
  2022-05-21 12:51 ` Michael Albinus
@ 2022-05-21 19:08   ` Thierry Volpiatto
  2022-05-22  8:05     ` Michael Albinus
  2022-05-21 19:31   ` Thierry Volpiatto
  2022-05-21 19:40   ` Thierry Volpiatto
  2 siblings, 1 reply; 10+ messages in thread
From: Thierry Volpiatto @ 2022-05-21 19:08 UTC (permalink / raw)
  To: Michael Albinus; +Cc: 55555

[-- Attachment #1: Type: text/plain, Size: 1889 bytes --]


Hi Michael,

Michael Albinus <michael.albinus@gmx.de> writes:

> Thierry Volpiatto <thievol@posteo.net> writes:
>
> Hi Thierry,
>
>> This is not happening up to Emacs-28.1, this starts happening recently
>> from emacs-29+.
>
> Do you use a "sudo" connection?

Yes.

> There has been a change in the .authinfo entry, see etc/NEWS from
> master:
>
> *** Proper password prompts for methods "doas", "sudo" and "sudoedit".
> The password prompts for these methods reflect now the credentials of
> the user requesting such a connection, and not of the user who is the
> target.  This has always been needed, just the password prompt and the
> related 'auth-sources' entry were wrong.

Ok thanks, will try soon to modify authsource file.

> And the Tramp manual says
>
>    For the methods ‘doas’, ‘sudo’ and ‘sudoedit’ the password of the
> user requesting the connection is needed, and not the password of the
> target user.  If these connections happen on the local host, an entry
> with the local user and local host is used:
>
>      machine HOST port sudo login USER password secret

Is this compatible with previous emacs versions (at least 28)?

I use

    default port sudo login root password xxxxx

since years now so I was surprized this stopped working suddently.

>> It asks also to save password in authinfo file when entering password.
>> Really annoying.
>
> See the Tramp manual:
>
>    If no proper entry exists, the password is read interactively.
> After successful login (verification of the password), Emacs offers to
> save a corresponding entry for further use by ‘auth-source’ backends
> which support this.  This can be changed by setting the user option
> ‘auth-source-save-behavior’ to ‘nil’.

Ok thanks for this, I don't want anything writing in this file.

Thanks.

-- 
Thierry

[-- Attachment #2: signature.asc --]
[-- Type: application/pgp-signature, Size: 686 bytes --]

^ permalink raw reply	[flat|nested] 10+ messages in thread

* bug#55555: 28.1; Tramp prompting for password even with an existing .authinfo.gpg file
  2022-05-21 12:51 ` Michael Albinus
  2022-05-21 19:08   ` Thierry Volpiatto
@ 2022-05-21 19:31   ` Thierry Volpiatto
  2022-05-21 19:40   ` Thierry Volpiatto
  2 siblings, 0 replies; 10+ messages in thread
From: Thierry Volpiatto @ 2022-05-21 19:31 UTC (permalink / raw)
  To: Michael Albinus; +Cc: 55555

[-- Attachment #1: Type: text/plain, Size: 516 bytes --]


Michael Albinus <michael.albinus@gmx.de> writes:

>    For the methods ‘doas’, ‘sudo’ and ‘sudoedit’ the password of the
> user requesting the connection is needed, and not the password of the
> target user.  If these connections happen on the local host, an entry
> with the local user and local host is used:
>
>      machine HOST port sudo login USER password secret

Unfortunately this is not working, thus it is crashing emacs.
Will try to investigate later.

Thanks.

-- 
Thierry

[-- Attachment #2: signature.asc --]
[-- Type: application/pgp-signature, Size: 686 bytes --]

^ permalink raw reply	[flat|nested] 10+ messages in thread

* bug#55555: 28.1; Tramp prompting for password even with an existing .authinfo.gpg file
  2022-05-21 12:51 ` Michael Albinus
  2022-05-21 19:08   ` Thierry Volpiatto
  2022-05-21 19:31   ` Thierry Volpiatto
@ 2022-05-21 19:40   ` Thierry Volpiatto
  2022-05-22  8:20     ` Michael Albinus
  2 siblings, 1 reply; 10+ messages in thread
From: Thierry Volpiatto @ 2022-05-21 19:40 UTC (permalink / raw)
  To: Michael Albinus; +Cc: 55555

[-- Attachment #1: Type: text/plain, Size: 484 bytes --]


Michael Albinus <michael.albinus@gmx.de> writes:

>      machine HOST port sudo login USER password secret

Ah! ok it is working now with my username and not "root" as before.
Anyway it should not crash emacs when an entry in authsource is wrong,
it should fail more gracefully.
To reproduce replace your username in authinfo by "root" and try /sudo::

PS: Emacs first freeze and then I have to "killall emacs" several times
to get it killed effectively.

-- 
Thierry

[-- Attachment #2: signature.asc --]
[-- Type: application/pgp-signature, Size: 686 bytes --]

^ permalink raw reply	[flat|nested] 10+ messages in thread

* bug#55555: 28.1; Tramp prompting for password even with an existing .authinfo.gpg file
  2022-05-21 19:08   ` Thierry Volpiatto
@ 2022-05-22  8:05     ` Michael Albinus
  2022-05-22 16:09       ` Thierry Volpiatto
  0 siblings, 1 reply; 10+ messages in thread
From: Michael Albinus @ 2022-05-22  8:05 UTC (permalink / raw)
  To: Thierry Volpiatto; +Cc: 55555

Thierry Volpiatto <thievol@posteo.net> writes:

> Hi Michael,

Hi Thierry,

>> And the Tramp manual says
>>
>>    For the methods ‘doas’, ‘sudo’ and ‘sudoedit’ the password of the
>> user requesting the connection is needed, and not the password of the
>> target user.  If these connections happen on the local host, an entry
>> with the local user and local host is used:
>>
>>      machine HOST port sudo login USER password secret
>
> Is this compatible with previous emacs versions (at least 28)?
>
> I use
>
>     default port sudo login root password xxxxx
>
> since years now so I was surprized this stopped working suddently.

It isn't compatible. But for a while, using both Rmacs 29 and Emacs <29,
you could keep both entries in .authinfo.gpg.

> Thanks.

Best regards, Michael.





^ permalink raw reply	[flat|nested] 10+ messages in thread

* bug#55555: 28.1; Tramp prompting for password even with an existing .authinfo.gpg file
  2022-05-21 19:40   ` Thierry Volpiatto
@ 2022-05-22  8:20     ` Michael Albinus
  2022-05-22 16:06       ` Thierry Volpiatto
  0 siblings, 1 reply; 10+ messages in thread
From: Michael Albinus @ 2022-05-22  8:20 UTC (permalink / raw)
  To: Thierry Volpiatto; +Cc: 55555

Thierry Volpiatto <thievol@posteo.net> writes:

Hi Thierry,

>>      machine HOST port sudo login USER password secret
>
> Ah! ok it is working now with my username and not "root" as before.
> Anyway it should not crash emacs when an entry in authsource is wrong,
> it should fail more gracefully.
> To reproduce replace your username in authinfo by "root" and try /sudo::
>
> PS: Emacs first freeze and then I have to "killall emacs" several times
> to get it killed effectively.

I cannot reproduce this. Could you pls check whether this happens also
for you running "emacs -q"? Yes, a small "-q"; with "-Q" Tramp ignores
the auth-source library.

Best regards, Michael.





^ permalink raw reply	[flat|nested] 10+ messages in thread

* bug#55555: 28.1; Tramp prompting for password even with an existing .authinfo.gpg file
  2022-05-22  8:20     ` Michael Albinus
@ 2022-05-22 16:06       ` Thierry Volpiatto
  2022-05-22 16:32         ` Michael Albinus
  0 siblings, 1 reply; 10+ messages in thread
From: Thierry Volpiatto @ 2022-05-22 16:06 UTC (permalink / raw)
  To: Michael Albinus; +Cc: 55555

[-- Attachment #1: Type: text/plain, Size: 236 bytes --]


Michael Albinus <michael.albinus@gmx.de> writes:

> I cannot reproduce this.

I can't reproduce the crash anymore, don't know what I did yesterday to
crash emacs, will let you know if it happen again.

Thanks.

-- 
Thierry

[-- Attachment #2: signature.asc --]
[-- Type: application/pgp-signature, Size: 686 bytes --]

^ permalink raw reply	[flat|nested] 10+ messages in thread

* bug#55555: 28.1; Tramp prompting for password even with an existing .authinfo.gpg file
  2022-05-22  8:05     ` Michael Albinus
@ 2022-05-22 16:09       ` Thierry Volpiatto
  0 siblings, 0 replies; 10+ messages in thread
From: Thierry Volpiatto @ 2022-05-22 16:09 UTC (permalink / raw)
  To: Michael Albinus; +Cc: 55555

[-- Attachment #1: Type: text/plain, Size: 934 bytes --]


Michael Albinus <michael.albinus@gmx.de> writes:

> Thierry Volpiatto <thievol@posteo.net> writes:
>
>> Hi Michael,
>
> Hi Thierry,
>
>>> And the Tramp manual says
>>>
>>>    For the methods ‘doas’, ‘sudo’ and ‘sudoedit’ the password of the
>>> user requesting the connection is needed, and not the password of the
>>> target user.  If these connections happen on the local host, an entry
>>> with the local user and local host is used:
>>>
>>>      machine HOST port sudo login USER password secret
>>
>> Is this compatible with previous emacs versions (at least 28)?
>>
>> I use
>>
>>     default port sudo login root password xxxxx
>>
>> since years now so I was surprized this stopped working suddently.
>
> It isn't compatible. But for a while, using both Rmacs 29 and Emacs <29,
> you could keep both entries in .authinfo.gpg.

Ok, so I will keep both entries, thanks.

-- 
Thierry

[-- Attachment #2: signature.asc --]
[-- Type: application/pgp-signature, Size: 686 bytes --]

^ permalink raw reply	[flat|nested] 10+ messages in thread

* bug#55555: 28.1; Tramp prompting for password even with an existing .authinfo.gpg file
  2022-05-22 16:06       ` Thierry Volpiatto
@ 2022-05-22 16:32         ` Michael Albinus
  0 siblings, 0 replies; 10+ messages in thread
From: Michael Albinus @ 2022-05-22 16:32 UTC (permalink / raw)
  To: Thierry Volpiatto; +Cc: 55555-done

Thierry Volpiatto <thievol@posteo.net> writes:

Hi Thierry,

> I can't reproduce the crash anymore, don't know what I did yesterday to
> crash emacs, will let you know if it happen again.

Yes, pls do. Perhaps it would be worth a new bug report then.

Closing *this* bug.

> Thanks.

Best regards, Michael.





^ permalink raw reply	[flat|nested] 10+ messages in thread

end of thread, other threads:[~2022-05-22 16:32 UTC | newest]

Thread overview: 10+ messages (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2022-05-21  7:31 bug#55555: 28.1; Tramp prompting for password even with an existing .authinfo.gpg file Thierry Volpiatto
2022-05-21 12:51 ` Michael Albinus
2022-05-21 19:08   ` Thierry Volpiatto
2022-05-22  8:05     ` Michael Albinus
2022-05-22 16:09       ` Thierry Volpiatto
2022-05-21 19:31   ` Thierry Volpiatto
2022-05-21 19:40   ` Thierry Volpiatto
2022-05-22  8:20     ` Michael Albinus
2022-05-22 16:06       ` Thierry Volpiatto
2022-05-22 16:32         ` Michael Albinus

Code repositories for project(s) associated with this public inbox

	https://git.savannah.gnu.org/cgit/emacs.git

This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for read-only IMAP folder(s) and NNTP newsgroup(s).