From mboxrd@z Thu Jan 1 00:00:00 1970 Path: news.gmane.io!.POSTED.blaine.gmane.org!not-for-mail From: Michael Albinus via "Bug reports for GNU Emacs, the Swiss army knife of text editors" Newsgroups: gmane.emacs.bugs Subject: bug#74105: 30.0.92; Some issues in TRAMP NEWS entries Date: Sun, 03 Nov 2024 16:01:03 +0100 Message-ID: <87cyjcnyz4.fsf@gmx.de> References: <87v7x9g82h.fsf@melete.silentflame.com> <87frod957b.fsf@gmx.de> <87ldy023f7.fsf@melete.silentflame.com> Reply-To: Michael Albinus 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="34991"; mail-complaints-to="usenet@ciao.gmane.io" User-Agent: Gnus/5.13 (Gnus v5.13) Cc: 74105@debbugs.gnu.org To: Sean Whitton Original-X-From: bug-gnu-emacs-bounces+geb-bug-gnu-emacs=m.gmane-mx.org@gnu.org Sun Nov 03 16:06:41 2024 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 1t7cBd-0008yh-JO for geb-bug-gnu-emacs@m.gmane-mx.org; Sun, 03 Nov 2024 16:06:41 +0100 Original-Received: from localhost ([::1] helo=lists1p.gnu.org) by lists.gnu.org with esmtp (Exim 4.90_1) (envelope-from ) id 1t7c95-0002pt-IJ; Sun, 03 Nov 2024 10:04:05 -0500 Original-Received: from eggs.gnu.org ([2001:470:142:3::10]) by lists.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_256_GCM_SHA384:256) (Exim 4.90_1) (envelope-from ) id 1t7c78-0000w5-GD for bug-gnu-emacs@gnu.org; Sun, 03 Nov 2024 10:02:02 -0500 Original-Received: from debbugs.gnu.org ([2001:470:142:5::43]) by eggs.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_128_GCM_SHA256:128) (Exim 4.90_1) (envelope-from ) id 1t7c78-0006nT-6m for bug-gnu-emacs@gnu.org; Sun, 03 Nov 2024 10:02:02 -0500 DKIM-Signature: v=1; a=rsa-sha256; q=dns/txt; c=relaxed/relaxed; d=debbugs.gnu.org; s=debbugs-gnu-org; h=MIME-Version:Date:References:In-Reply-To:From:To:Subject; bh=w16A3z1uZJ+Iw7Bl/tY3cnLzmGGyoE7LOWFm6XpfvkQ=; b=RW7EQPNdl0oqp6+vU+/o+f/uVBVoierze2aINQyjBBUrUyahCDibT0bScGj4C7vpD+b24498qYdUqFkqt77uoBP808gnf+n8WQ6dh6/cGdqiQYS+TnNVvAItPBuomBQem1kD5tWpFaYIflvoTWIxpNctwuOfvyxQjEKEcEU4Or8tNqYGWY5GESTJz6zT1qNGrBZTPBmx4h7bAx3jbjuQyX1EMgNSGwqw7WGfkRCmQnAvh2B8w1apMVLhwojFIUjuQqXZbkrGQ0yIryCkD00dnTkrmPXc2TUfgBdpaOfgaDjRRZttE8UDFbISI/vD5FE4I87Gf54CndKmO1PQ+uKa0g==; Original-Received: from Debian-debbugs by debbugs.gnu.org with local (Exim 4.84_2) (envelope-from ) id 1t7c78-0001mP-0z for bug-gnu-emacs@gnu.org; Sun, 03 Nov 2024 10:02:02 -0500 X-Loop: help-debbugs@gnu.org Resent-From: Michael Albinus Original-Sender: "Debbugs-submit" Resent-CC: bug-gnu-emacs@gnu.org Resent-Date: Sun, 03 Nov 2024 15:02:01 +0000 Resent-Message-ID: Resent-Sender: help-debbugs@gnu.org X-GNU-PR-Message: followup 74105 X-GNU-PR-Package: emacs Original-Received: via spool by 74105-submit@debbugs.gnu.org id=B74105.17306460776820 (code B ref 74105); Sun, 03 Nov 2024 15:02:01 +0000 Original-Received: (at 74105) by debbugs.gnu.org; 3 Nov 2024 15:01:17 +0000 Original-Received: from localhost ([127.0.0.1]:60910 helo=debbugs.gnu.org) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1t7c6O-0001lw-T9 for submit@debbugs.gnu.org; Sun, 03 Nov 2024 10:01:17 -0500 Original-Received: from mout.gmx.net ([212.227.17.22]:58941) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1t7c6M-0001lo-Ja for 74105@debbugs.gnu.org; Sun, 03 Nov 2024 10:01:15 -0500 DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmx.de; s=s31663417; t=1730646064; x=1731250864; i=michael.albinus@gmx.de; bh=w16A3z1uZJ+Iw7Bl/tY3cnLzmGGyoE7LOWFm6XpfvkQ=; h=X-UI-Sender-Class:From:To:Cc:Subject:In-Reply-To:References:Date: Message-ID:MIME-Version:Content-Type:Content-Transfer-Encoding:cc: content-transfer-encoding:content-type:date:from:message-id: mime-version:reply-to:subject:to; b=ptFLH6DZ3S8FvdVeePTRcS9eoPmvyRn/eNGTFsUzA0xjvjx+GoMqglMbDQ0nXPm3 DZxyOhrU1eup/9wGv1m69uFpmfr95h0xQRUdS/STas4ZOdh+oOYzI1JUk+7yLILbw QTeCQjc+nJlhuIAYD9B2GI3K6wONzK8TwtzC/uiOd7sMWWzNUDdTF87RS49f9xWz6 YkAbC/LuNoBGXBFxU0evxc4pHB7D6BZ6ULT4VDe1SVWzmsy6dDgdPOgTNj9ax91+K RQP/hms9mPJBpYI0c4g6uhi7Sr21I4vEP0IdYdtJU4XZgMGZb9nZKzSC17C+hGlqi EIB/DvNu3lQ5M+4Liw== X-UI-Sender-Class: 724b4f7f-cbec-4199-ad4e-598c01a50d3a Original-Received: from gandalf.gmx.de ([185.89.38.155]) by mail.gmx.net (mrgmx105 [212.227.17.168]) with ESMTPSA (Nemesis) id 1MRmjq-1tIB1m1KwM-00P3gj; Sun, 03 Nov 2024 16:01:04 +0100 In-Reply-To: <87ldy023f7.fsf@melete.silentflame.com> (Sean Whitton's message of "Sun, 03 Nov 2024 15:15:56 +0800") X-Provags-ID: V03:K1:T5/AXo09VmoKH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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-bounces+geb-bug-gnu-emacs=m.gmane-mx.org@gnu.org Xref: news.gmane.io gmane.emacs.bugs:294797 Archived-At: Sean Whitton writes: > Hello, Hi Sean, > So how about just > > In previous Emacs versions this was indicated by the > connection property "direct-async-process". That connection > property (though not connection properties and > `tramp-connection-properties' in general) is now deprecated. Thanks. I've pushed your rephrased version to the emacs-30 repo. > I still think it would be a good idea to give an answer to "just turn > this on for everything, please" in the manual. I've added the following to the Tramp manual (after the example with 'remotehost'): --8<---------------cut here---------------start------------->8--- This enables direct async processes for the host =E2=80=98remotehost=E2= =80=99. If you want to enable direct async processes for all remote hosts connected via the same method (e.g., =E2=80=98ssh=E2=80=99), use instead (connection-local-set-profiles '(:application tramp :protocol "ssh") 'remote-direct-async-process) --8<---------------cut here---------------end--------------->8--- Pushed to emacs-30. >>> (3) Has there been a change to how password caching works? >>> >>> I tried deleting the session-timeout configuration. I made a >>> /sudo:: connection. After some time passed, I saw the familiar >>> "Tramp connection timed out" message. But it reconnected >>> immediately when I tried to save a buffer I had open. Does it now >>> cache the sudo password? In the past, you had to type it again, >>> after the timeout. >>> >>> If there is a change here, it's security-relevant, so it should >>> probably be in NEWS. >> >> Likely, you're trapped by the following change, documented in NEWS.29: >> >> --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--- >> >> If it is something else, we need to debug. > > Hmm, isn't this NEWS.29 change just a change in the password prompt? I > don't see how that applies to what I described. > > Unless it caches the sudo password, it shouldn't have been able to > reconnect. No, there is also a change in the user name in .authinfo and friends. The Tramp manual says: --8<---------------cut here---------------start------------->8--- For the methods =E2=80=98doas=E2=80=99, =E2=80=98sudo=E2=80=99, =E2=80= =98sudoedit=E2=80=99 and =E2=80=98nspawn=E2=80=99 the password of the user requesting the connection is needed, and not the password of the target user(1). 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 USER and HOST are the strings returned by =E2=80=98(user-login-name)=E2= =80=99 and =E2=80=98(system-name)=E2=80=99. If one of these methods is connected via = a multi-hop (*note Multi-hops::), the credentials of the previous hop are used. --8<---------------cut here---------------end--------------->8--- Before Emacs 29, you needed "login root" instead. This change was mentioned in the etc/NEWS file indirectly, by saying "related 'auth-sources' entry": --8<---------------cut here---------------start------------->8--- This has always been needed, just the password prompt and the related 'auth-sources' entry were wrong. --8<---------------cut here---------------end--------------->8--- Best regards, Michael.