From mboxrd@z Thu Jan 1 00:00:00 1970 Path: news.gmane.org!.POSTED!not-for-mail From: Michael Albinus Newsgroups: gmane.emacs.help Subject: Re: TRAMP sudo method not asking for password Date: Wed, 16 Jan 2019 23:42:56 +0100 Message-ID: <87tvi8gr67.fsf@gmx.de> References: <87r2dhq1do.fsf@mbork.pl> <87r2dholak.fsf@mbork.pl> <87pnt1okze.fsf@mbork.pl> <87k1j9sokz.fsf@gmx.de> <87o98gs9qc.fsf@mbork.pl> 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 1547678495 5828 195.159.176.226 (16 Jan 2019 22:41:35 GMT) X-Complaints-To: usenet@blaine.gmane.org NNTP-Posting-Date: Wed, 16 Jan 2019 22:41:35 +0000 (UTC) User-Agent: Gnus/5.13 (Gnus v5.13) Emacs/27.0.50 (gnu/linux) Cc: Help Gnu Emacs mailing list To: Marcin Borkowski Original-X-From: help-gnu-emacs-bounces+geh-help-gnu-emacs=m.gmane.org@gnu.org Wed Jan 16 23:41:31 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 esmtp (Exim 4.84_2) (envelope-from ) id 1gjtsJ-0001P4-0M for geh-help-gnu-emacs@m.gmane.org; Wed, 16 Jan 2019 23:41:31 +0100 Original-Received: from localhost ([127.0.0.1]:43998 helo=lists.gnu.org) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1gjtuP-0003oH-Sv for geh-help-gnu-emacs@m.gmane.org; Wed, 16 Jan 2019 17:43:41 -0500 Original-Received: from eggs.gnu.org ([209.51.188.92]:53640) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1gjttz-0003o9-8o for help-gnu-emacs@gnu.org; Wed, 16 Jan 2019 17:43:16 -0500 Original-Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.71) (envelope-from ) id 1gjtty-0007ZH-85 for help-gnu-emacs@gnu.org; Wed, 16 Jan 2019 17:43:15 -0500 Original-Received: from mout.gmx.net ([212.227.17.22]:40411) by eggs.gnu.org with esmtps (TLS1.0:DHE_RSA_AES_128_CBC_SHA1:16) (Exim 4.71) (envelope-from ) id 1gjttx-0007V1-Ud for help-gnu-emacs@gnu.org; Wed, 16 Jan 2019 17:43:14 -0500 Original-Received: from detlef.gmx.de ([212.86.43.239]) by mail.gmx.com (mrgmx102 [212.227.17.168]) with ESMTPSA (Nemesis) id 0MUCTO-1gsBL41SGQ-00Qyps; Wed, 16 Jan 2019 23:43:00 +0100 In-Reply-To: <87o98gs9qc.fsf@mbork.pl> (Marcin Borkowski's message of "Wed, 16 Jan 2019 20:06:35 +0100") X-Provags-ID: V03:K1:5YRFccI0VynnityenUqt1S5MWcXo01KM6WmBM1ZdDV/vxu4XXAG ERhomhMQuZAn+avUc7tb8It3kHXW/WGHkg3e+RaS45UBP1bUcPAZDq+iTcDOqFdHzuyKCeZ P0PRgU4tYUXp7gDBvoByuVbHsijfOcKThP87qoHVuk5RM/Sz5md/hbh1ssKRwHOwVTDmMhM wo7tXKDjxVTKtghz5hSnA== X-UI-Out-Filterresults: notjunk:1;V03:K0:xvGQw3LMgdc=:Z/pLrTPszd63G4cIQ9jfCQ vq16nT4z0s158hAbW4ozDWJ284btmtpiqxeO/YRBxIVZic3I7KidZ91+nfo8fYdE8R/QDbZTl kFiuLSb4Vi47BYOAA2ko72lTrMaXj9Hq8bpibE+W6rpqK9Wqy9JtiLCHpuV9rG+ueUUleG8AM 5OJr21FP+97lFvsDDtMrZZoUa4xwzLujJ2aWCSwP/pkH14zSrElVE7Yk3OEX7n2enIWaiyIDk FrEo3Xn2750sYXZCcuqXZ+PHLjFf7ufgcgLcEYo1GdQ5/6lpBVtc7aCnDIQlPIq3lldF6iBLi VU/o2GASzM3cULDnetbgYhmGWNeTmXkNsSQufVd8WNf/MmVuWXPS86r9+5cuAM697Cii5EK+z bs3kcS7oeYbqDf/CGJlIFneiX20PJ5OtR4etPnAdzaSMrnFhwyqpdCglziD54iTmvq5zrP8fe NLBk/8aG0xpweZOYjUdBqJ6AV1MQ9IO88VIW5sCjDPy5vGZwnCSFCJ7jUTRxshN/xpnIWz7bp QVG+DZcdrHau+3JvUt4869mxsSMpP5gyqxWEcjJfeMtaYyOPnFH+YOQDkIlmJl4cv4awYXdEo oQUsnAEi8O4jr/9+HIzwT01NrcELqhwqa/Cus0PqnD5LNhUXH2hsLrf4/n64dmL7Ht/sFlhiP /CiyJMGeyA13UmtQH42/UL9X8T6HKexL2NfCs+cb0EaSUJN8wm7N2aMDyL6nejwzeO/ZVNM+4 FWSz7iRszCqTs5KiHp5NNAcig0tCL6on7Ynkb7n+3BPc4TMN55NE/XGk9oAdrwZWkOo+cpej X-detected-operating-system: by eggs.gnu.org: GNU/Linux 2.2.x-3.x [generic] X-Received-From: 212.227.17.22 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:119119 Archived-At: 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 b= e 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. > 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. > Best, > > Marcin Borkowski Best regards, Michael.