From mboxrd@z Thu Jan 1 00:00:00 1970 Path: news.gmane.org!.POSTED.blaine.gmane.org!not-for-mail From: Marcin Borkowski Newsgroups: gmane.emacs.help Subject: Re: TRAMP sudo method not asking for password Date: Thu, 24 Jan 2019 18:11:36 +0100 Message-ID: <874l9y7zg7.fsf@mbork.pl> References: <87r2dhq1do.fsf@mbork.pl> <87r2dholak.fsf@mbork.pl> <87pnt1okze.fsf@mbork.pl> <87k1j9sokz.fsf@gmx.de> <87o98gs9qc.fsf@mbork.pl> <87tvi8gr67.fsf@gmx.de> <87h8e3oomg.fsf@mbork.pl> <871s578utc.fsf@gmx.de> Mime-Version: 1.0 Content-Type: text/plain Injection-Info: blaine.gmane.org; posting-host="blaine.gmane.org:195.159.176.226"; logging-data="171696"; mail-complaints-to="usenet@blaine.gmane.org" User-Agent: mu4e 1.1.0; emacs 27.0.50 Cc: Help Gnu Emacs mailing list To: Michael Albinus Original-X-From: help-gnu-emacs-bounces+geh-help-gnu-emacs=m.gmane.org@gnu.org Thu Jan 24 18:12:51 2019 Return-path: Envelope-to: geh-help-gnu-emacs@m.gmane.org Original-Received: from lists.gnu.org ([209.51.188.17]) by blaine.gmane.org with esmtps (TLS1.0:RSA_AES_256_CBC_SHA1:256) (Exim 4.89) (envelope-from ) id 1gmiYb-000iYu-Vu for geh-help-gnu-emacs@m.gmane.org; Thu, 24 Jan 2019 18:12:50 +0100 Original-Received: from localhost ([127.0.0.1]:57227 helo=lists.gnu.org) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1gmiYa-0007Pl-Vn for geh-help-gnu-emacs@m.gmane.org; Thu, 24 Jan 2019 12:12:49 -0500 Original-Received: from eggs.gnu.org ([209.51.188.92]:59850) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1gmiY6-0007PZ-Qp for help-gnu-emacs@gnu.org; Thu, 24 Jan 2019 12:12:19 -0500 Original-Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.71) (envelope-from ) id 1gmiY5-0000dx-Jg for help-gnu-emacs@gnu.org; Thu, 24 Jan 2019 12:12:18 -0500 Original-Received: from mail.mojserwer.eu ([195.110.48.8]:51382) by eggs.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1gmiY5-0000cy-CQ for help-gnu-emacs@gnu.org; Thu, 24 Jan 2019 12:12:17 -0500 Original-Received: from localhost (localhost [127.0.0.1]) by mail.mojserwer.eu (Postfix) with ESMTP id D4DFDE6BE2; Thu, 24 Jan 2019 18:12:15 +0100 (CET) X-Virus-Scanned: Debian amavisd-new at mail.mojserwer.eu Original-Received: from mail.mojserwer.eu ([127.0.0.1]) by localhost (mail.mojserwer.eu [127.0.0.1]) (amavisd-new, port 10024) with ESMTP id DeJ13k9zF8Ua; Thu, 24 Jan 2019 18:12:13 +0100 (CET) Original-Received: from localhost (static-dwadziewiec-jedenpiec7.echostar.pl [109.232.29.157]) by mail.mojserwer.eu (Postfix) with ESMTPSA id C12E9E6650; Thu, 24 Jan 2019 18:12:12 +0100 (CET) In-reply-to: <871s578utc.fsf@gmx.de> X-detected-operating-system: by eggs.gnu.org: GNU/Linux 2.2.x-3.x [generic] X-Received-From: 195.110.48.8 X-BeenThere: help-gnu-emacs@gnu.org X-Mailman-Version: 2.1.21 Precedence: list List-Id: Users list for the GNU Emacs text editor List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Errors-To: help-gnu-emacs-bounces+geh-help-gnu-emacs=m.gmane.org@gnu.org Original-Sender: "help-gnu-emacs" Xref: news.gmane.org gmane.emacs.help:119151 Archived-At: On 2019-01-20, at 11:52, Michael Albinus wrote: > Marcin Borkowski writes: > > Hi Marcin, > >>> Why should it? Tramp uses auth-source, which has different backends. It >>> is not only the .authinfo file which gets the passwords, other backends >>> like the Secret Service API behave similar. >> >> Well, I didn't know anything about it. (Perhaps not reading the TRAMP >> manual was a mistake... Still, just a mention of auth-source *might* be >> a good idea when discussing TRAMP in the Emacs manual. IDK.) > > There are several other packages using auth-source, none of them have a > respective hint in the Emacs manual. I don't see why Tramp needs an > exception. Until recently I had no idea about the existence of auth-source... > > Reading the Tramp manual shall be sufficient. OK, I will do it and I'll see whether that helps. >>>> 1. Am I the only one that thinks that this change could be made a bit >>>> more prominent? Like using something like yes-or-no-p (as opposed to >>>> y-or-n-p) by default, for example? Saving passwords to a plain text >>>> file is something big, which should not happen by accident, right? >>> >>> Again, we don't speak about plain files only. And yes, yes-or-no-p might >>> fit better. This must be changed in auth-source.el. >>> >>> Let's wait for some few days, and if nobody objects, I'll change >>> accordingly. >> >> Thanks for the change (if it takes place), and for your time answering >> my questions. > > I've written the bug report (a feature request rather) bug#34145. Thanks, and best regards, -- Marcin Borkowski http://mbork.pl