From mboxrd@z Thu Jan 1 00:00:00 1970 Path: news.gmane.org!.POSTED!not-for-mail From: Michael Albinus Newsgroups: gmane.emacs.devel Subject: Re: sudo:: method in tramp possible security issue Date: Wed, 21 Nov 2018 13:26:27 +0100 Message-ID: <87wop6pqfg.fsf@gmx.de> References: <87ftvwdcdw.fsf@gmx.de> <87bm6kdb68.fsf@gmx.de> <87bm6kyxc3.fsf@gmx.de> <87k1l83yd3.fsf@gmx.de> <87o9ajvost.fsf@gmx.de> <87198cbf-4e47-b094-8a06-7406114e86db@cs.ucla.edu> <888b347f-80f3-dbc2-9e88-74be3375b599@cs.ucla.edu> <878t1n2yll.fsf@gmx.de> <87d0qy98sc.fsf@gmx.de> NNTP-Posting-Host: blaine.gmane.org Mime-Version: 1.0 Content-Type: text/plain; charset=utf-8 Content-Transfer-Encoding: quoted-printable X-Trace: blaine.gmane.org 1542803106 12260 195.159.176.226 (21 Nov 2018 12:25:06 GMT) X-Complaints-To: usenet@blaine.gmane.org NNTP-Posting-Date: Wed, 21 Nov 2018 12:25:06 +0000 (UTC) User-Agent: Gnus/5.13 (Gnus v5.13) Emacs/27.0.50 (gnu/linux) Cc: Eli Zaretskii , Paul Eggert , Stefan Monnier , emacs-devel To: =?utf-8?B?Sm/Do28gVMOhdm9yYQ==?= Original-X-From: emacs-devel-bounces+ged-emacs-devel=m.gmane.org@gnu.org Wed Nov 21 13:25:02 2018 Return-path: Envelope-to: ged-emacs-devel@m.gmane.org Original-Received: from lists.gnu.org ([208.118.235.17]) by blaine.gmane.org with esmtp (Exim 4.84_2) (envelope-from ) id 1gPRYx-00032r-By for ged-emacs-devel@m.gmane.org; Wed, 21 Nov 2018 13:24:59 +0100 Original-Received: from localhost ([::1]:38779 helo=lists.gnu.org) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1gPRb3-0000JV-WB for ged-emacs-devel@m.gmane.org; Wed, 21 Nov 2018 07:27:10 -0500 Original-Received: from eggs.gnu.org ([2001:4830:134:3::10]:41652) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1gPRat-0000JG-1o for emacs-devel@gnu.org; Wed, 21 Nov 2018 07:27:03 -0500 Original-Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.71) (envelope-from ) id 1gPRan-0004Lw-GV for emacs-devel@gnu.org; Wed, 21 Nov 2018 07:26:59 -0500 Original-Received: from mout.gmx.net ([212.227.15.18]:42721) by eggs.gnu.org with esmtps (TLS1.0:DHE_RSA_AES_128_CBC_SHA1:16) (Exim 4.71) (envelope-from ) id 1gPRag-0004Bk-Do; Wed, 21 Nov 2018 07:26:47 -0500 Original-Received: from detlef.gmx.de ([178.20.93.145]) by mail.gmx.com (mrgmx003 [212.227.17.190]) with ESMTPSA (Nemesis) id 0MaIsi-1g9y2R0WeO-00JoMD; Wed, 21 Nov 2018 13:26:31 +0100 In-Reply-To: <87d0qy98sc.fsf@gmx.de> (Michael Albinus's message of "Wed, 21 Nov 2018 08:41:55 +0100") X-Provags-ID: V03:K1:ES62g7uzYAtk4fCx1Pld2WtsvLtlpxoBifplcWvn1tWfJzfMBHV 7QGArB3wtkgLBS2rCfsfFz7wF/ShSi/8ypmb8K7+JAkIzJ4BwSibCaYzTV+DY/1keBTmiVE U0JSfciRHWHH6k0npRnj74z4ubfpb2VdlsUmWc2BQAGvqe44s8I5IXWw7fk+EsOvTfnJY3C /dbRM6//knDiBBr3T8rbA== X-UI-Out-Filterresults: notjunk:1;V03:K0:a6kx9POrOf0=:60RaDv9fLNOCbUV9XbQ0Ny vE6hY43SG+E69v7W6UwcvwSV6S9L7ehMNpajJStR7KRiJQDd0lFgzuPtoiTowPntzhqTb1mk5 8/SoLu/1mFGT6xJUg6OMKDQRVaCuRvl5ig9uVkdyURlOG5CsGqJiUOJzwu9PQwDzCtGML4Vb9 VYkRRU+tT+OEJf1kD808gQVTWQCztIWsAcsFNFF2n6K6l2YZjhmiYeXauHKRAmvd0TB7+Mqxu vm77ZHc/ZeJCDFb0vj0UVVQ6tbeMKFrQDP3c76u8MPmMcKb+fJXQapSinvgJB7RZnlLWA6wss 064DEA5e3vy6H95YKyExAEwCBf5MinGITcWAoA3o0rbz442Cjrs0wLIoln9mQPpLmyIHKCy+V bA/4GOMIe8nOQnvAMk+Mh6RCU/kjpspy1BFlb0WeXgWwOyDbK2TM4SgaL9lTvTr5xP1iA4WqL uqOUu7LCSLGRQ55mpTInrYoC8qx8Idqpw6Vtr1r/if0edIOoVNVoYUInULFw8ZjDtrBe7wRJS M4PY7pDxKeEKy/figpcZRrTTQzcLPQr+hnyK75UXgv5MFSfXfN8IHucbVZeq1lg9YYu+N7/qk SYaI6y0NSrfVjWolJkDHYqZxPRC2G9rd52QrrXzKCA7KhoKihlZaK3yIUQ4z/LCIPLIefjo9E qa7Qu5yv0YbRX/jhOBWafpn5BVrp6RNOT9NoKLSEbTbETrS19qRf5im/RzESiNs54txDlJRri 6uPzEp3FXfTQMYNnSM61SljxPQhkaX3a9CuBepBhqhp1jUrtPyttGopVNYMKj/+VYhwfbVbd X-detected-operating-system: by eggs.gnu.org: GNU/Linux 2.2.x-3.x [generic] X-Received-From: 212.227.15.18 X-BeenThere: emacs-devel@gnu.org X-Mailman-Version: 2.1.21 Precedence: list List-Id: "Emacs development discussions." List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Errors-To: emacs-devel-bounces+ged-emacs-devel=m.gmane.org@gnu.org Original-Sender: "Emacs-devel" Xref: news.gmane.org gmane.emacs.devel:231280 Archived-At: Michael Albinus writes: > The command `tramp-cleanup-connection' closes any background session for > a Tramp connection, including removing cached passwords. Maybe we shall > call this for sudo/su methods automatically after a given timeout, like > the password expiration for sudo in a terminal. 5 minutes seem to be a > sensible value to me. I give it a try. I've pushed a change to the master branch, which expires sudo and doas background sessions after 5 minutes. Check the Tramp manual for details. Let's see how it goes. >> Jo=C3=A3o Best regards, Michael.