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: Sat, 12 Jan 2019 18:09:07 +0100 Message-ID: <87r2dholak.fsf@mbork.pl> References: <87r2dhq1do.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 1547313157 14456 195.159.176.226 (12 Jan 2019 17:12:37 GMT) X-Complaints-To: usenet@blaine.gmane.org NNTP-Posting-Date: Sat, 12 Jan 2019 17:12:37 +0000 (UTC) User-Agent: mu4e 1.1.0; emacs 27.0.50 To: Help Gnu Emacs mailing list Original-X-From: help-gnu-emacs-bounces+geh-help-gnu-emacs=m.gmane.org@gnu.org Sat Jan 12 18:12:33 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 1giMpg-0003VT-Lf for geh-help-gnu-emacs@m.gmane.org; Sat, 12 Jan 2019 18:12:28 +0100 Original-Received: from localhost ([127.0.0.1]:35212 helo=lists.gnu.org) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1giMrn-0003oi-A4 for geh-help-gnu-emacs@m.gmane.org; Sat, 12 Jan 2019 12:14:39 -0500 Original-Received: from eggs.gnu.org ([209.51.188.92]:50841) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1giMr0-0003kw-U6 for help-gnu-emacs@gnu.org; Sat, 12 Jan 2019 12:13:51 -0500 Original-Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.71) (envelope-from ) id 1giMnE-0004Fg-OJ for help-gnu-emacs@gnu.org; Sat, 12 Jan 2019 12:09:57 -0500 Original-Received: from mail.mojserwer.eu ([195.110.48.8]:57046) by eggs.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1giMnD-0004Dl-72 for help-gnu-emacs@gnu.org; Sat, 12 Jan 2019 12:09:56 -0500 Original-Received: from localhost (localhost [127.0.0.1]) by mail.mojserwer.eu (Postfix) with ESMTP id 7F612E66FC for ; Sat, 12 Jan 2019 18:09:51 +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 B-pSqC2pAXfd for ; Sat, 12 Jan 2019 18:09:48 +0100 (CET) Original-Received: from localhost (static-dwadziewiec-jedenpiec7.echostar.pl [109.232.29.157]) by mail.mojserwer.eu (Postfix) with ESMTPSA id 9F6CFE6695 for ; Sat, 12 Jan 2019 18:09:48 +0100 (CET) In-reply-to: <87r2dhq1do.fsf@mbork.pl> 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:119113 Archived-At: On 2019-01-12, at 17:36, Marcin Borkowski wrote: > Hi all, > > I have a very strange problem: the TRAMP sudo method stopped asking me > for the password. How is that possible? sudo in terminal behaves > normally, so it cannot be some global setting I messed up. > > emacs -Q does TRT, i.e., asks for the password. > > I understand that I can bisect my init.el, but it is almost 2 klines > long, so before I do that, I'd like to ask - maybe someone will know the > answer off the top of their head? > > Note: deleting ~/.emacs.d/tramp didn't help. OK, so I have some further details. Bisecting init.el didn't help. For completeness, I have this in my `*Messages*': --8<---------------cut here---------------start------------->8--- Tramp: Opening connection for root@tars using sudo... Tramp: Sending command =E2=80=98exec env SHELL=3D/bin/sh sudo -u root -s -H= -p P""a""s""s""w""o""r""d"":=E2=80=99 Tramp: Waiting for prompts from remote shell... Tramp: Sending Password Tramp: Waiting for prompts from remote shell...done Tramp: Found remote shell prompt on =E2=80=98tars=E2=80=99 Tramp: Opening connection for root@tars using sudo...done --8<---------------cut here---------------end--------------->8--- Using apropos-value, I found my password in `password-data'. After skimming through `password-cache.el', I tried `M-x password-reset' to no avail. I looked into ~/.emacs.d for some file/directory named `cache' or similar, but didn't find anything. Finally, I ran out of ideas. I ran out of ideas. I understand that I probably accidentally told Emacs to cache my password. What can I do to un-cache it? (While convenient, it doesn't seem very safe.) TIA, --=20 Marcin Borkowski http://mbork.pl