From mboxrd@z Thu Jan 1 00:00:00 1970 Path: news.gmane.org!.POSTED!not-for-mail From: Stefan Monnier Newsgroups: gmane.emacs.devel Subject: Re: sudo:: method in tramp possible security issue Date: Tue, 20 Nov 2018 16:18:57 -0500 Message-ID: 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> NNTP-Posting-Host: blaine.gmane.org Mime-Version: 1.0 Content-Type: text/plain X-Trace: blaine.gmane.org 1542748667 5232 195.159.176.226 (20 Nov 2018 21:17:47 GMT) X-Complaints-To: usenet@blaine.gmane.org NNTP-Posting-Date: Tue, 20 Nov 2018 21:17:47 +0000 (UTC) User-Agent: Gnus/5.13 (Gnus v5.13) Emacs/27.0.50 (gnu/linux) Cc: Eli Zaretskii , Michael Albinus , =?windows-1252?B?Sm/jbyBU4XZvcmE=?= , emacs-devel To: Paul Eggert Original-X-From: emacs-devel-bounces+ged-emacs-devel=m.gmane.org@gnu.org Tue Nov 20 22:17:43 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 1gPDOw-00018a-5t for ged-emacs-devel@m.gmane.org; Tue, 20 Nov 2018 22:17:42 +0100 Original-Received: from localhost ([::1]:35960 helo=lists.gnu.org) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1gPDR2-0005cs-AZ for ged-emacs-devel@m.gmane.org; Tue, 20 Nov 2018 16:19:52 -0500 Original-Received: from eggs.gnu.org ([2001:4830:134:3::10]:51987) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1gPDQT-0005cU-Lk for emacs-devel@gnu.org; Tue, 20 Nov 2018 16:19:18 -0500 Original-Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.71) (envelope-from ) id 1gPDQQ-0002uc-IY for emacs-devel@gnu.org; Tue, 20 Nov 2018 16:19:17 -0500 Original-Received: from chene.dit.umontreal.ca ([132.204.246.20]:59886) by eggs.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1gPDQQ-0002tt-Ex; Tue, 20 Nov 2018 16:19:14 -0500 Original-Received: from pastel.home (lechon.iro.umontreal.ca [132.204.27.242]) by chene.dit.umontreal.ca (8.14.7/8.14.1) with ESMTP id wAKLIw3s029267; Tue, 20 Nov 2018 16:18:58 -0500 Original-Received: by pastel.home (Postfix, from userid 20848) id 021416A641; Tue, 20 Nov 2018 16:18:57 -0500 (EST) In-Reply-To: <87198cbf-4e47-b094-8a06-7406114e86db@cs.ucla.edu> (Paul Eggert's message of "Tue, 20 Nov 2018 13:14:59 -0800") X-NAI-Spam-Flag: NO X-NAI-Spam-Threshold: 5 X-NAI-Spam-Score: 0 X-NAI-Spam-Rules: 2 Rules triggered EDT_SA_DN_PASS=0, RV6422=0 X-NAI-Spam-Version: 2.3.0.9418 : core <6422> : inlines <6964> : streams <1804848> : uri <2752927> X-detected-operating-system: by eggs.gnu.org: Genre and OS details not recognized. X-Received-From: 132.204.246.20 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:231258 Archived-At: > Is there a simple way to configure Emacs so that it does not use this sudo > (or sudoedit) feature of Tramp? Yes: use the default config and just don't use Tramp's sudo method. > I long ago put (setq tramp-mode nil) into my ~/.emacs file because of > security concerns, so I wouldn't need to selectively disable sudo > myself. Tramp is not magical: it can do no more nor less than what an attacker could do. So disabling it doesn't buy you anything in this respect, AFAICT. Stefan