unofficial mirror of bug-gnu-emacs@gnu.org 
 help / color / mirror / code / Atom feed
From: Michael Albinus <michael.albinus@gmx.de>
To: Thierry Volpiatto <thievol@posteo.net>
Cc: 55555@debbugs.gnu.org
Subject: bug#55555: 28.1; Tramp prompting for password even with an existing .authinfo.gpg file
Date: Sat, 21 May 2022 14:51:20 +0200	[thread overview]
Message-ID: <87zgjbdp6f.fsf@gmx.de> (raw)
In-Reply-To: <87leuv1grl.fsf@posteo.net> (Thierry Volpiatto's message of "Sat,  21 May 2022 07:31:29 +0000")

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.





  reply	other threads:[~2022-05-21 12:51 UTC|newest]

Thread overview: 10+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
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 [this message]
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

Reply instructions:

You may reply publicly to this message via plain-text email
using any one of the following methods:

* Save the following mbox file, import it into your mail client,
  and reply-to-all from there: mbox

  Avoid top-posting and favor interleaved quoting:
  https://en.wikipedia.org/wiki/Posting_style#Interleaved_style

  List information: https://www.gnu.org/software/emacs/

* Reply using the --to, --cc, and --in-reply-to
  switches of git-send-email(1):

  git send-email \
    --in-reply-to=87zgjbdp6f.fsf@gmx.de \
    --to=michael.albinus@gmx.de \
    --cc=55555@debbugs.gnu.org \
    --cc=thievol@posteo.net \
    /path/to/YOUR_REPLY

  https://kernel.org/pub/software/scm/git/docs/git-send-email.html

* If your mail client supports setting the In-Reply-To header
  via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line before the message body.
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).