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: Wed, 30 Oct 2024 12:54:16 +0100 Message-ID: <87frod957b.fsf@gmx.de> References: <87v7x9g82h.fsf@melete.silentflame.com> Reply-To: Michael Albinus Mime-Version: 1.0 Content-Type: text/plain Injection-Info: ciao.gmane.io; posting-host="blaine.gmane.org:116.202.254.214"; logging-data="6154"; 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 Wed Oct 30 12:55:33 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 1t67IT-0001Q6-6P for geb-bug-gnu-emacs@m.gmane-mx.org; Wed, 30 Oct 2024 12:55:33 +0100 Original-Received: from localhost ([::1] helo=lists1p.gnu.org) by lists.gnu.org with esmtp (Exim 4.90_1) (envelope-from ) id 1t67I1-0003Pu-Ei; Wed, 30 Oct 2024 07:55:05 -0400 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 1t67Hz-0003ON-Td for bug-gnu-emacs@gnu.org; Wed, 30 Oct 2024 07:55:04 -0400 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 1t67Hz-0008Et-HB for bug-gnu-emacs@gnu.org; Wed, 30 Oct 2024 07:55:03 -0400 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=tFMYp80/s5AzRWa7AT+GQ+8VvElm0CjAOWl+6fm/tlM=; b=frkQ8uSZXIKKu+1ywvc6pXcce1V9yGmCZAiI2rx/99QRlHcDZ7065pQdSXMPqFf4/0FOBbFxPIiYRAu7y7txQMWoNGp8WjqFJ9gag72S2fGxi1/bAiYJa2vGCgzAuiqdyMabcIrDKsNbulpD7J84y5Pr5ZX61wphQeaic1LfqEPxiHUf9QVZ7V17/EGgC8BtDydnj5jzFo9ClJMb4GbvyL9Ap16a4AaMh1nVXbnxVMRccQw3vq5WZuCi7TqfzjJTF+C3VbLclAgaKBo8HT4qrpDqkVpu/pdFC2o3mQ3Td0D4u6o7Qn7h2p0oKsEyhdHvbbgEx08a3KPJ9Amuw3l78g==; Original-Received: from Debian-debbugs by debbugs.gnu.org with local (Exim 4.84_2) (envelope-from ) id 1t67Hy-0006eJ-E8 for bug-gnu-emacs@gnu.org; Wed, 30 Oct 2024 07:55: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: Wed, 30 Oct 2024 11:55:02 +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.173028927525537 (code B ref 74105); Wed, 30 Oct 2024 11:55:02 +0000 Original-Received: (at 74105) by debbugs.gnu.org; 30 Oct 2024 11:54:35 +0000 Original-Received: from localhost ([127.0.0.1]:34868 helo=debbugs.gnu.org) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1t67HW-0006dp-PN for submit@debbugs.gnu.org; Wed, 30 Oct 2024 07:54:35 -0400 Original-Received: from mout.gmx.net ([212.227.17.22]:59783) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1t67HT-0006dd-Mx for 74105@debbugs.gnu.org; Wed, 30 Oct 2024 07:54:33 -0400 DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmx.de; s=s31663417; t=1730289261; x=1730894061; i=michael.albinus@gmx.de; bh=tFMYp80/s5AzRWa7AT+GQ+8VvElm0CjAOWl+6fm/tlM=; h=X-UI-Sender-Class:From:To:Cc:Subject:In-Reply-To:References:Date: Message-ID:MIME-Version:Content-Type:cc:content-transfer-encoding: content-type:date:from:message-id:mime-version:reply-to:subject: to; b=U0UcirqanHRLd9qIo6iPruVhpjXspHB+q6k3rZ2ogwl8ca0ObC8U6OfyQVDp2q52 XHWvZ9uOXW80AyD0YVfWdZPzXdWICjYY95ZcLA3Eha4cFhWsZaDTIMEWPTFYjGJTc QNKy5kok1qh3m6WTqv2fAcE37L9eN/+NyTc6H988NlfFiKfdarPTczjsmVgfdbTnE zwrJaQlWiBPF7MYPFkf7U72eGCMyzdrD4ZZZ5AB8hvebjCeebTb9SU3msE+jaItzG chL2k1Y1t3jeLcUrL46JuJzH0zhZfmU4+NOA6D+knbxrqojper/Yqqo3gQeU8gT0S A53S1t4ENKI3AWUKSQ== 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 1MJE27-1tPhOY06Xr-00XYNn; Wed, 30 Oct 2024 12:54:21 +0100 In-Reply-To: <87v7x9g82h.fsf@melete.silentflame.com> (Sean Whitton's message of "Wed, 30 Oct 2024 19:10:30 +0800") X-Provags-ID: V03:K1:elDMA6YHfZvN9BtZhOSHMGw9QYY4kKFvQja6hMUS9YVa1uQbe/I w7h0H83U5EFQ1lapRt+JlmLGQmvS4Ea6YvHrrgXbfZqnM7B0u93T7TBgfA2I76hSC09hTD5 rQxICWT1BTeOH9MMBz8AXrxZkXIXniXPO4b1rxJQ0KMpDez0BK2zzA23EcmtsH+dTiyUODn vg8fBsQZhFUyY2cTnhhuQ== UI-OutboundReport: notjunk:1;M01:P0:6ioCs6NESJ0=;r2IJnBvUsXJW8dAsHLwSi47v8mk KlvcBumjX80S8wHPAfsuNXVbWGUq6V8i+m5kVnOP/zqVVGzrtZ7K+sbKi53uU/8li8CcM/9Vi t6KY3S83dMnDeF5DtpSR6ongBChAJ936dI9+zwK2ydTZTSTaNOAyWzGJTVjdZBY4rDL+iKuSK xcTwX2M2ovX9w0+CRMEw7cGN72XC3NilSgp5UCV5OQQvt7OH9njdn1CEYw/n2ozwL4jNGqyrR taVVjx61nwTWx0Ckb7W1WChTZsKUCnfiG3RscVzdlW7DIJ3N80WfyFZ2nl2NqKmTgcuOT0XBQ Mo6pJikU9GgzJtXsE2KMhIxbx72FW0a4Bh62SgkL4uCWS0fy/IB1AsEf5wIZk/QRr3o5XGNGv 5bVNDDmn6KVj9w61gTQd5K/mChJFSYsT5JgSPZjplqoKbZZOcQGI7zXiFH5THD/oiS+PdBII7 0SZZW06SvNEU6myKtzLaieAQXG9SJptNWhy6ZQFvVeVU7YSs4yI4Jsm9xicz5aoHdlhVQM7ox 0SlafDCSrpFmiCcWQOcAU2vl+AekOrPWiHCCRBGlwZX0um/eh658o+ad4I0yCIs4WWSilrUeW 9Hr5RZwWwQPMX92zIlqdrISJsMaWppmWU5gEQwrzoWnoSPGXzXVVJR0+g8cns3Kayazzx1IiN Loc81RM63t+dVKRBezGdwAanCqMSVakmdguzOWZzoJepXKRSynjzLQWyf0yYL3jfHaSvz47rb xiBWShtPEHTanTLqDYPneeDE7a84aHTmR4B34ikmzsRtSP0JFFSUXkWzN+VRe3SpQjFkwjbf 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-bounces+geb-bug-gnu-emacs=m.gmane-mx.org@gnu.org Xref: news.gmane.io gmane.emacs.bugs:294555 Archived-At: Sean Whitton writes: > Hello, Hi Sean, thank you for your report. > In NEWS we have > > +++ > *** Direct asynchronous processes are indicated by a connection-local variable. > If direct asynchronous processes shall be used, set the connection-local > variable 'tramp-direct-async-process' to a non-nil value. This has been > changed, in previous Emacs versions this was indicated by the now > deprecated connection property "direct-async-process". See the Tramp > manual "(tramp) Improving performance of asynchronous remote processes". > > In my init.el I have this: > > (with-eval-after-load 'tramp > (add-to-list 'tramp-connection-properties > '("/ssh:" "direct-async-process" t)) > (add-to-list 'tramp-connection-properties '(nil "session-timeout" nil))) > > I have some documentation issues: > > (1) The NEWS entry, together with the Info manual, were not sufficient > for me to figure how to migrate my config. For example, is the > whole of tramp-connection-properties being replaced? Or do I only > need to migrate the direct-async-process part? No, the whole tramp-connection-properties machinery is not replaced, otherwise it would have been mentioned in NEWS. Furthermore, it is still explained in the Tramp info manual of Emacs 30, which could give you an indication that it still exists. > I think additional documentation, even an explicit migration guide, > would be desirable. What you need to set is described in the Tramp manual. That's why the quoted NEWS entry says --8<---------------cut here---------------start------------->8--- See the Tramp manual "(tramp) Improving performance of asynchronous remote processes". --8<---------------cut here---------------end--------------->8--- That doesn't need a migration guide. > (2) Turning on direct async processes for all SSH connections seems like > a common configuration. How about adding that to the manual, in > addition to the example for enabling them for one host? I don't know whether it is common praxis. I, for example, access my NAS boxes (QNAP) via ssh w/o direct async processes. Simply, because they are special, and do not cooperate well with direct async processes. Furthermore, there are also disadvantages using direct async processes, which are listed in the Tramp manual (same node as above). This prevents me from saying, all connections using "ssh" shall use direct async processes. And what's about "scp"? You can also use direct async processes for such connections. Would you like to recommend this as well in general? Where do you want to stop? Recommend "rsync"? Sorry, but the conditions are more complex than you expect. People shall find out what's best suited for them. > (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. > Thanks. Best regards, Michael.