From mboxrd@z Thu Jan 1 00:00:00 1970 Path: news.gmane.io!.POSTED.blaine.gmane.org!not-for-mail From: Michael Albinus Newsgroups: gmane.emacs.bugs 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 Message-ID: <87zgjbdp6f.fsf@gmx.de> References: <87leuv1grl.fsf@posteo.net> Mime-Version: 1.0 Content-Type: text/plain; charset=utf-8 Content-Transfer-Encoding: quoted-printable Injection-Info: ciao.gmane.io; posting-host="blaine.gmane.org:116.202.254.214"; logging-data="39893"; mail-complaints-to="usenet@ciao.gmane.io" User-Agent: Gnus/5.13 (Gnus v5.13) Emacs/29.0.50 (gnu/linux) Cc: 55555@debbugs.gnu.org To: Thierry Volpiatto Original-X-From: bug-gnu-emacs-bounces+geb-bug-gnu-emacs=m.gmane-mx.org@gnu.org Sat May 21 14:52:40 2022 Return-path: Envelope-to: geb-bug-gnu-emacs@m.gmane-mx.org Original-Received: from lists.gnu.org ([209.51.188.17]) by ciao.gmane.io with esmtps (TLS1.2:ECDHE_RSA_AES_256_GCM_SHA384:256) (Exim 4.92) (envelope-from ) id 1nsOb2-000AEE-7E for geb-bug-gnu-emacs@m.gmane-mx.org; Sat, 21 May 2022 14:52:40 +0200 Original-Received: from localhost ([::1]:35862 helo=lists1p.gnu.org) by lists.gnu.org with esmtp (Exim 4.90_1) (envelope-from ) id 1nsOb0-0006Ne-R8 for geb-bug-gnu-emacs@m.gmane-mx.org; Sat, 21 May 2022 08:52:38 -0400 Original-Received: from eggs.gnu.org ([2001:470:142:3::10]:53062) by lists.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_256_GCM_SHA384:256) (Exim 4.90_1) (envelope-from ) id 1nsOaR-0006N2-2E for bug-gnu-emacs@gnu.org; Sat, 21 May 2022 08:52:05 -0400 Original-Received: from debbugs.gnu.org ([209.51.188.43]:47015) by eggs.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_128_GCM_SHA256:128) (Exim 4.90_1) (envelope-from ) id 1nsOaQ-0000Xj-Ef for bug-gnu-emacs@gnu.org; Sat, 21 May 2022 08:52:02 -0400 Original-Received: from Debian-debbugs by debbugs.gnu.org with local (Exim 4.84_2) (envelope-from ) id 1nsOaQ-0002h4-DL for bug-gnu-emacs@gnu.org; Sat, 21 May 2022 08:52:02 -0400 X-Loop: help-debbugs@gnu.org Resent-From: Michael Albinus Original-Sender: "Debbugs-submit" Resent-CC: bug-gnu-emacs@gnu.org Resent-Date: Sat, 21 May 2022 12:52:02 +0000 Resent-Message-ID: Resent-Sender: help-debbugs@gnu.org X-GNU-PR-Message: followup 55555 X-GNU-PR-Package: emacs Original-Received: via spool by 55555-submit@debbugs.gnu.org id=B55555.165313749110315 (code B ref 55555); Sat, 21 May 2022 12:52:02 +0000 Original-Received: (at 55555) by debbugs.gnu.org; 21 May 2022 12:51:31 +0000 Original-Received: from localhost ([127.0.0.1]:40912 helo=debbugs.gnu.org) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1nsOZv-0002gJ-1N for submit@debbugs.gnu.org; Sat, 21 May 2022 08:51:31 -0400 Original-Received: from mout.gmx.net ([212.227.17.22]:52765) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1nsOZs-0002g0-2y for 55555@debbugs.gnu.org; Sat, 21 May 2022 08:51:29 -0400 DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/simple; d=gmx.net; s=badeba3b8450; t=1653137481; bh=aZXrNLW0ysWfl/C75mLEVk66mOL3HMCj/X9kkIPDRJ8=; h=X-UI-Sender-Class:From:To:Cc:Subject:References:Date:In-Reply-To; b=DCw/9ASDHJrn8R/qhLXX4k+E30g08MD48c/XNqtviql9LyI2tjKeTABzEsb3E5QJ4 zDnpwjSLjChpTr/vggytxE0heMyW1occ+qdDZ29Oge7f3ZlKzn1vmH94AYT+kWq/Tf fF+xkERvn/LQoUAhd7ysTCPUW/aMyLhCYezlbKa4= X-UI-Sender-Class: 01bb95c1-4bf8-414a-932a-4f6e2808ef9c Original-Received: from gandalf.gmx.de ([213.220.149.14]) by mail.gmx.net (mrgmx104 [212.227.17.168]) with ESMTPSA (Nemesis) id 1MQvD5-1oGH5a0yxT-00Nxtc; Sat, 21 May 2022 14:51:21 +0200 In-Reply-To: <87leuv1grl.fsf@posteo.net> (Thierry Volpiatto's message of "Sat, 21 May 2022 07:31:29 +0000") X-Provags-ID: V03:K1:cYplN+Lv41L2LIloEGIf3ypFsMlfh5mtXRKE5uYnI39n4/fztfI rS3IE/eiLxYpu99AquKpTrqSGiAt3LeAZfbVEdoK/xCNqbvp98IQE5F1yhPI1+ePx45jFvq pUBE2I9cHarYnsVPKbnqDxfEU1QhTAaQQHwv/enK2yWZiyicbeCbWezYOdSnPL4l/U/ls61 Lh5faohCjqiIJjple6eJw== X-UI-Out-Filterresults: notjunk:1;V03:K0:TvSbjb8TAyY=:bDvT/EvPs+5Tln7wMRM0+a gHG09ADMxSqcSQ/UfeFtVksbkIjFsuREICMwsWNseut5z3aLl0Z/0+Hx7Yca5xteedCykjHOO ceP4eRXWmTvFxUy6sFNQAEKjQbH7dTh/sn3YwPzFWIzw+hPAO4gdzUfrA7Pc5xYdpt/3Jn0Ks uSrc+fvATvBOTzqz/yyVbaGoRVXIj4wiqHm9nn7S/M75ugPSbu5LLmZXBCO1/hUIRPC+ZU0vi WOGLmML1OY+PIkZP2iKPZ3hIFzJalrL1G9WHwHDWCpS9iXF94BU9AhRVbtI15vaZ0GvfSpryo eAZ30cbXkIuGmik2IQlGw2KrEKPGFOpxRIs45Q4knQXPzll2pw2m/HX/faJFoEKzG3tXYU66g KKOZq9mBd6ItjBkm/n/OSwpljFdQ3B1bwTCfnNdafMWbXorhfBc/omPaaesi16FsVBFlQFbMr GE9d4myLBM3tHfNKJKPwVpADyZX9e/gXEJ4HEUCdo0JycJop1FQt/tBly3JyjEGzBcJ8D+J9m d7BUg9rGWYFWsedNXS3q/2UkYa+0BLTNrNePgE/JKyK7av48dq0/Un0ZWYJKw8O7iwiem6tvA BdBvqz9xZZGrPQXwb8AjOGgr8t9fw9LznyPAUB5LAynAgMxETfzx82f8cvEHQGps5ArKw21M9 2kivVYhRlSZ0oFbjp//VALOzGxQ4IlfSXMgxVGuybbF4QmsOF20bcYOYMZNlJQfNWozdeISKb Wt6DD7LMdZLges0id41567SUHVd6RPvlBU2AbfNYncir2RI2IPOKwHw8OkM8kuRqvS5VtWdF X-BeenThere: debbugs-submit@debbugs.gnu.org X-Mailman-Version: 2.1.18 Precedence: list X-BeenThere: bug-gnu-emacs@gnu.org List-Id: "Bug reports for GNU Emacs, the Swiss army knife of text editors" List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Errors-To: bug-gnu-emacs-bounces+geb-bug-gnu-emacs=m.gmane-mx.org@gnu.org Original-Sender: "bug-gnu-emacs" Xref: news.gmane.io gmane.emacs.bugs:232824 Archived-At: Thierry Volpiatto 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 =E2=80=98doas=E2=80=99, =E2=80=98sudo=E2=80=99 and =E2= =80=98sudoedit=E2=80=99 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 =E2=80=98auth-source=E2=80=99= backends which support this. This can be changed by setting the user option =E2=80=98auth-source-save-behavior=E2=80=99 to =E2=80=98nil=E2=80=99. --8<---------------cut here---------------end--------------->8--- > Thanks. Best regards, Michael.