GNU bug report logs - #55555
28.1; Tramp prompting for password even with an existing .authinfo.gpg file

Previous Next

Package: emacs;

Reported by: Thierry Volpiatto <thievol <at> posteo.net>

Date: Sat, 21 May 2022 07:35:02 UTC

Severity: normal

Tags: notabug

Found in version 28.1

Done: Michael Albinus <michael.albinus <at> gmx.de>

Bug is archived. No further changes may be made.

Full log


View this message in rfc822 format

From: Thierry Volpiatto <thievol <at> posteo.net>
To: Michael Albinus <michael.albinus <at> gmx.de>
Cc: 55555 <at> 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
[Message part 1 (text/plain, inline)]
Hi Michael,

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

> Thierry Volpiatto <thievol <at> 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
[signature.asc (application/pgp-signature, inline)]

This bug report was last modified 3 years and 86 days ago.

Previous Next


GNU bug tracking system
Copyright (C) 1999 Darren O. Benham, 1997,2003 nCipher Corporation Ltd, 1994-97 Ian Jackson.