From mboxrd@z Thu Jan 1 00:00:00 1970 Path: news.gmane.org!.POSTED!not-for-mail From: Marcin Borkowski Newsgroups: gmane.emacs.help Subject: Re: TRAMP sudo method not asking for password Date: Sun, 20 Jan 2019 06:59:51 +0100 Message-ID: <87h8e3oomg.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> NNTP-Posting-Host: ciao.gmane.org Mime-Version: 1.0 Content-Type: text/plain; charset=utf-8 Content-Transfer-Encoding: quoted-printable X-Trace: ciao.gmane.org 1547964089 74673 195.159.176.228 (20 Jan 2019 06:01:29 GMT) X-Complaints-To: usenet@ciao.gmane.org NNTP-Posting-Date: Sun, 20 Jan 2019 06:01:29 +0000 (UTC) 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 Sun Jan 20 07:01:27 2019 Return-path: Envelope-to: geh-help-gnu-emacs@m.gmane.org Original-Received: from lists.gnu.org ([209.51.188.17]) by ciao.gmane.org with esmtps (TLS1.0:RSA_AES_256_CBC_SHA1:256) (Exim 4.84_2) (envelope-from ) id 1gl6Ag-000JPM-Ur for geh-help-gnu-emacs@m.gmane.org; Sun, 20 Jan 2019 07:01:27 +0100 Original-Received: from localhost ([127.0.0.1]:35937 helo=lists.gnu.org) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1gl6Am-00080E-Dj for geh-help-gnu-emacs@m.gmane.org; Sun, 20 Jan 2019 01:01:32 -0500 Original-Received: from eggs.gnu.org ([209.51.188.92]:57182) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1gl6A0-0007yc-5R for help-gnu-emacs@gnu.org; Sun, 20 Jan 2019 01:00:45 -0500 Original-Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.71) (envelope-from ) id 1gl69z-0006jb-2V for help-gnu-emacs@gnu.org; Sun, 20 Jan 2019 01:00:44 -0500 Original-Received: from mail.mojserwer.eu ([195.110.48.8]:38466) by eggs.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1gl69y-0006aF-Rc for help-gnu-emacs@gnu.org; Sun, 20 Jan 2019 01:00:43 -0500 Original-Received: from localhost (localhost [127.0.0.1]) by mail.mojserwer.eu (Postfix) with ESMTP id B522BE6BE2; Sun, 20 Jan 2019 07:00:30 +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 WqEaR3P6g6c5; Sun, 20 Jan 2019 07:00:27 +0100 (CET) Original-Received: from localhost (static-dwadziewiec-jedenpiec7.echostar.pl [109.232.29.157]) by mail.mojserwer.eu (Postfix) with ESMTPSA id 75D09E6650; Sun, 20 Jan 2019 07:00:27 +0100 (CET) In-reply-to: <87tvi8gr67.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:119129 Archived-At: On 2019-01-16, at 23:42, Michael Albinus wrote: > Marcin Borkowski writes: > > Hi Marcin, > >>> And this IS documented. etc/NEWS says in the Tramp section >>> >>> --8<---------------cut here---------------start------------->8--- >>> *** Validated passwords are saved by auth-source backends which support= this. >>> --8<---------------cut here---------------end--------------->8--- >>> >>> And in the Tramp manual, there is in (info "(tramp) Password handling") >>> >>> --8<---------------cut here---------------start------------->8--- >>> If there doesn=E2=80=99t exist a proper entry, the password is read >>> interactively. After successful login (verification of the password), >>> it is offered to save a corresponding entry for further use by >>> =E2=80=98auth-source=E2=80=99 backends which support this. This could = be changed by >>> setting the user option =E2=80=98auth-source-save-behavior=E2=80=99 to = =E2=80=98nil=E2=80=99. >>> --8<---------------cut here---------------end--------------->8--- >> >> Well, I don't often read NEWS. And the above is not very clear (it says >> nothing about the .authinfo file, for instance). > > 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.) >> 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. Best, --=20 Marcin Borkowski http://mbork.pl