unofficial mirror of bug-gnu-emacs@gnu.org 
 help / color / mirror / code / Atom feed
From: Thierry Volpiatto <thievol@posteo.net>
To: Michael Albinus <michael.albinus@gmx.de>
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 19:08:16 +0000	[thread overview]
Message-ID: <87h75i1yor.fsf@posteo.net> (raw)
In-Reply-To: <87zgjbdp6f.fsf@gmx.de>

[-- 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 --]

  reply	other threads:[~2022-05-21 19:08 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
2022-05-21 19:08   ` Thierry Volpiatto [this message]
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=87h75i1yor.fsf@posteo.net \
    --to=thievol@posteo.net \
    --cc=55555@debbugs.gnu.org \
    --cc=michael.albinus@gmx.de \
    /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).