From mboxrd@z Thu Jan 1 00:00:00 1970 Path: news.gmane.org!not-for-mail From: Michael Albinus Newsgroups: gmane.emacs.help Subject: Re: Tramp multi-hop on localhost: su:sudo Date: Tue, 09 Jun 2009 06:08:09 +0200 Message-ID: <87iqj6t5g6.fsf@gmx.de> References: <20090518101805.GD26546@groll.co.za> <87ljo4q90n.fsf@gmx.de> <20090608215748.GA5278@groll.co.za> NNTP-Posting-Host: lo.gmane.org Mime-Version: 1.0 Content-Type: text/plain; charset=us-ascii X-Trace: ger.gmane.org 1244520531 27287 80.91.229.12 (9 Jun 2009 04:08:51 GMT) X-Complaints-To: usenet@ger.gmane.org NNTP-Posting-Date: Tue, 9 Jun 2009 04:08:51 +0000 (UTC) Cc: help-gnu-emacs@gnu.org To: Jonathan Groll Original-X-From: help-gnu-emacs-bounces+geh-help-gnu-emacs=m.gmane.org@gnu.org Tue Jun 09 06:08:47 2009 Return-path: Envelope-to: geh-help-gnu-emacs@m.gmane.org Original-Received: from lists.gnu.org ([199.232.76.165]) by lo.gmane.org with esmtp (Exim 4.50) id 1MDsde-0000iK-2E for geh-help-gnu-emacs@m.gmane.org; Tue, 09 Jun 2009 06:08:42 +0200 Original-Received: from localhost ([127.0.0.1]:35689 helo=lists.gnu.org) by lists.gnu.org with esmtp (Exim 4.43) id 1MDsdd-0005U0-8r for geh-help-gnu-emacs@m.gmane.org; Tue, 09 Jun 2009 00:08:41 -0400 Original-Received: from mailman by lists.gnu.org with tmda-scanned (Exim 4.43) id 1MDsdH-0005Sx-Q0 for help-gnu-emacs@gnu.org; Tue, 09 Jun 2009 00:08:19 -0400 Original-Received: from exim by lists.gnu.org with spam-scanned (Exim 4.43) id 1MDsdD-0005Sl-3f for help-gnu-emacs@gnu.org; Tue, 09 Jun 2009 00:08:19 -0400 Original-Received: from [199.232.76.173] (port=52456 helo=monty-python.gnu.org) by lists.gnu.org with esmtp (Exim 4.43) id 1MDsdD-0005Si-01 for help-gnu-emacs@gnu.org; Tue, 09 Jun 2009 00:08:15 -0400 Original-Received: from mail.gmx.net ([213.165.64.20]:53751) by monty-python.gnu.org with smtp (Exim 4.60) (envelope-from ) id 1MDsdC-0005wP-BT for help-gnu-emacs@gnu.org; Tue, 09 Jun 2009 00:08:14 -0400 Original-Received: (qmail invoked by alias); 09 Jun 2009 04:08:11 -0000 Original-Received: from p57A223DF.dip0.t-ipconnect.de (EHLO arthur.local) [87.162.35.223] by mail.gmx.net (mp054) with SMTP; 09 Jun 2009 06:08:11 +0200 X-Authenticated: #3708877 X-Provags-ID: V01U2FsdGVkX18S83pBRjoSv8RENWyzvsBWx3JnlUI5vDNW/tPqSU 7nrgTskEDubm9N In-Reply-To: <20090608215748.GA5278@groll.co.za> (Jonathan Groll's message of "Mon, 8 Jun 2009 23:57:48 +0200") User-Agent: Gnus/5.13 (Gnus v5.13) Emacs/23.0.94 (gnu/linux) X-Y-GMX-Trusted: 0 X-FuHaFi: 0.65 X-detected-operating-system: by monty-python.gnu.org: GNU/Linux 2.6 (newer, 3) X-BeenThere: help-gnu-emacs@gnu.org X-Mailman-Version: 2.1.5 Precedence: list List-Id: Users list for the GNU Emacs text editor List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Original-Sender: help-gnu-emacs-bounces+geh-help-gnu-emacs=m.gmane.org@gnu.org Errors-To: help-gnu-emacs-bounces+geh-help-gnu-emacs=m.gmane.org@gnu.org Xref: news.gmane.org gmane.emacs.help:65071 Archived-At: Jonathan Groll writes: > Only one odd thing - even though I'd already established a tramp > session as: > /su:otheruser@localhost: > > When I opened my first buffer using "C-x C-f /sudo:root@localhost:" > (from an active buffer 'owned' by otheruser) it seemed to ask for > otheruser's password again, i.e. it first asked for a password for > /su:otheruser@localhost: and then it asked for a password for: > /sudo:root@localhost: > > So in total I ended up entering the password for otheruser 3 times - > it seems like my first tramp session as 'otheruser' did not get > "reused". I presume the above is because of the proxy also getting a > tramp session? Yes. However, Tramp can reuse passwords. What is your value of `password-cache-expiry'? Usually, it is the number of seconds how long passwords are cached. Setting it to `nil' disables the expiration. See also (info "(tramp)Password handling") > Thank you and regards, > Jonathan. Best regards, Michael.