From mboxrd@z Thu Jan 1 00:00:00 1970 Path: news.gmane.io!.POSTED.blaine.gmane.org!not-for-mail From: Thierry Volpiatto 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 19:08:16 +0000 Message-ID: <87h75i1yor.fsf@posteo.net> References: <87zgjbdp6f.fsf@gmx.de> Mime-Version: 1.0 Content-Type: multipart/signed; boundary="=-=-="; micalg=pgp-sha512; protocol="application/pgp-signature" Injection-Info: ciao.gmane.io; posting-host="blaine.gmane.org:116.202.254.214"; logging-data="17880"; mail-complaints-to="usenet@ciao.gmane.io" Cc: 55555@debbugs.gnu.org To: Michael Albinus Original-X-From: bug-gnu-emacs-bounces+geb-bug-gnu-emacs=m.gmane-mx.org@gnu.org Sat May 21 21:20:11 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 1nsUe3-0004RY-Fz for geb-bug-gnu-emacs@m.gmane-mx.org; Sat, 21 May 2022 21:20:11 +0200 Original-Received: from localhost ([::1]:52698 helo=lists1p.gnu.org) by lists.gnu.org with esmtp (Exim 4.90_1) (envelope-from ) id 1nsUe2-0005Qa-2s for geb-bug-gnu-emacs@m.gmane-mx.org; Sat, 21 May 2022 15:20:10 -0400 Original-Received: from eggs.gnu.org ([2001:470:142:3::10]:48820) by lists.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_256_GCM_SHA384:256) (Exim 4.90_1) (envelope-from ) id 1nsUdu-0005Q9-Bb for bug-gnu-emacs@gnu.org; Sat, 21 May 2022 15:20:02 -0400 Original-Received: from debbugs.gnu.org ([209.51.188.43]:49089) by eggs.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_128_GCM_SHA256:128) (Exim 4.90_1) (envelope-from ) id 1nsUdu-0004pG-1y for bug-gnu-emacs@gnu.org; Sat, 21 May 2022 15:20:02 -0400 Original-Received: from Debian-debbugs by debbugs.gnu.org with local (Exim 4.84_2) (envelope-from ) id 1nsUdt-0002uy-SS for bug-gnu-emacs@gnu.org; Sat, 21 May 2022 15:20:01 -0400 X-Loop: help-debbugs@gnu.org Resent-From: Thierry Volpiatto Original-Sender: "Debbugs-submit" Resent-CC: bug-gnu-emacs@gnu.org Resent-Date: Sat, 21 May 2022 19:20:01 +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.165316075811156 (code B ref 55555); Sat, 21 May 2022 19:20:01 +0000 Original-Received: (at 55555) by debbugs.gnu.org; 21 May 2022 19:19:18 +0000 Original-Received: from localhost ([127.0.0.1]:42986 helo=debbugs.gnu.org) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1nsUdC-0002tr-6q for submit@debbugs.gnu.org; Sat, 21 May 2022 15:19:18 -0400 Original-Received: from mout01.posteo.de ([185.67.36.65]:42701) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1nsUd9-0002tc-7a for 55555@debbugs.gnu.org; Sat, 21 May 2022 15:19:16 -0400 Original-Received: from submission (posteo.de [185.67.36.169]) by mout01.posteo.de (Postfix) with ESMTPS id AFED3240029 for <55555@debbugs.gnu.org>; Sat, 21 May 2022 21:19:08 +0200 (CEST) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/simple; d=posteo.net; s=2017; t=1653160748; bh=TYlKyhRGYmoRuYJ6MDqFMQrmVurrEdJsmI4M1EVPzLM=; h=From:To:Cc:Subject:Date:Autocrypt:From; b=clucCQSsmUAwwqiDXLlZoFtc2A1gbQqKHPRZX/4l18ov854C8smtw316PJevq34rP SmLt2UhCpj8cDetpiI+1xrK8NKkj9X/kd1a29/nfi2oJ4dXMV+4nGWVoKh7fuquBNY wQk4gU/l4w2QXqa97AcyEzu075OSRjZpk3BMz/6of5qCVN12T6hMizoxQgPao7Sb4b XcozpA9+dKjjJAdAzcgZEZl+hr28+qnPkvMNP+nYUhq8k3+yBHnmi7z3bEVIb/canZ Wkq4+CX7vJYbch/lEGqAu6dRDde6f3x+EyIY14UpT52/YG7Ah1DdvHn6hXXWOI3We/ tz4Ykt/PdLXJA== Original-Received: from customer (localhost [127.0.0.1]) by submission (posteo.de) with ESMTPSA id 4L5D0q4jK1z9rxL; Sat, 21 May 2022 21:19:07 +0200 (CEST) In-reply-to: <87zgjbdp6f.fsf@gmx.de> Autocrypt: addr=thievol@posteo.net; prefer-encrypt=mutual; keydata= mQGNBF8ylcIBDADG+hy+zR6L4/vbdDDZuSaMmSrU3A5QZJpeBCvxTr7MpzzruZbhLPW1K3R6N2MA edi8Y+C8o27FVRIjpdbaKMGu9je7JV/TbUQYo3SOwCK1vM4LUn4V6ZLzSYkuiEt4eyMoiDdyvN0p kcK6P9x9DCetcEVszXzQg+yzCVrQ2hXWDXWT4M18EC3wtO7RHPouMqGiwBFhBAYErCqFWFxQHkfb tG/4yGyJ58rglb65O3qijjMWvYwcWZun9/7qm8Z4/4mHopmo2zgU+OrptnLSZfkZGz3Y7Uf452xQ GVq0Fv75NPvQru7y+DYVhuVXXyAmGxt+vf4rIiixMBbhKEPjcxEPAa2LTzex2IsTZR+QVG9uDnqC WcgaOEQ58fzXNvNhtwwF/Rgio2XWAJVdmFWS59/k9W58CIUSNKBMZh2XeGdEmtHvDtCxW3z6FJha 36RzOM3fMNNiAGdFZJA84gcdloJR+sHCDTTPT3784fjr+V8An7sI581NGFzkRQqPvEQCZbUAEQEA AbQSdGhpZXZvbEBwb3N0ZW8ubmV0iQHUBBMBCgA+FiEEI9twfRN7r3nig/xwDsVtFB0W75MFAl8y lcICGwMFCQPCZwAFCwkIBwIGFQoJCAsCBBYCAwECHgECF4AACgkQDsVtFB0W75MB3QwAlTsVzFmr +S/tMKwwwOibjhNPi/OZiUC2AYfaqfVAiIHDT3RbzDe03sAJoomJkJnYVjGzQZwibCMO2+ITkMPV 2wvrd4CbgS1KCVbrltwcuK/nxPCBaHytOCZUIInnhJo5PE/h03K 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:232848 Archived-At: --=-=-= Content-Type: text/plain; charset=utf-8 Content-Transfer-Encoding: quoted-printable Hi Michael, Michael Albinus writes: > 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? 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 =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 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 =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. Ok thanks for this, I don't want anything writing in this file. Thanks. =2D-=20 Thierry --=-=-= Content-Type: application/pgp-signature; name="signature.asc" -----BEGIN PGP SIGNATURE----- iQHHBAEBCgAxFiEEI9twfRN7r3nig/xwDsVtFB0W75MFAmKJOyUTHHRoaWV2b2xA cG9zdGVvLm5ldAAKCRAOxW0UHRbvk7GgDACrrAtSbue7LH6ZqBBdQWx6Ec6cMQM4 Wj5liU94+B9CqtCqNnO4eAJbWB16JquM9699Jh4siDdStxrOsz1ivJ5w0glZpeER gvWuW98DPBJTjJTOTN0TBzHxTPt4B0zS+EkyuAz67ReoxHte3bgJvlH80I5Y0GlD AZCMug2E34Ztqn0jyIEf3p1pTOuWALrmyhagBUMQppThBDc/07DlX7UWdmCsrQ3B 0TlOSuJM80lQPVAvh0kvxt+8kOIe/4bvJkshqFmGvxECe8eDRmBVpFqeE4uM/0ek eu3TYErIp6RZLKUYHZU66U96baAtMavIHcL5zzsIRguHMFR4pL5vgRGP6Z/LJJ+m OHw7qPVbpzY50W2WxfSuVxKxMLq7Om5m254m7zOxDLkuHrtfvz1fDS09tmU12dSC ipKMEkuVorbxEoT1tr9f5fCDrrxlfA1qKDeN8IcwQ+VQZMwvHNh867DPqsTChBpU v9ak3nPbwcEodU27I8tB/qCUMRtKijz+paw= =jGOJ -----END PGP SIGNATURE----- --=-=-=--