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: How to stop TRAMP from asking for sudo password on every startup? Date: Wed, 16 Apr 2008 20:24:53 +0200 Message-ID: <873apl1wui.fsf@gmx.de> References: <20080416084536.GG3811@groll.co.za> <87wsmxhgz2.fsf@W0053328.mgh.harvard.edu> NNTP-Posting-Host: lo.gmane.org Mime-Version: 1.0 Content-Type: text/plain; charset=us-ascii X-Trace: ger.gmane.org 1208371415 10923 80.91.229.12 (16 Apr 2008 18:43:35 GMT) X-Complaints-To: usenet@ger.gmane.org NNTP-Posting-Date: Wed, 16 Apr 2008 18:43:35 +0000 (UTC) Cc: help-gnu-emacs@gnu.org To: jadamson@partners.org (Joel J. Adamson) Original-X-From: help-gnu-emacs-bounces+geh-help-gnu-emacs=m.gmane.org@gnu.org Wed Apr 16 20:44:02 2008 connect(): Connection refused 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 1JmCIK-0005UY-Gy for geh-help-gnu-emacs@m.gmane.org; Wed, 16 Apr 2008 20:23:44 +0200 Original-Received: from localhost ([127.0.0.1] helo=lists.gnu.org) by lists.gnu.org with esmtp (Exim 4.43) id 1JmCHf-0002Bt-Rt for geh-help-gnu-emacs@m.gmane.org; Wed, 16 Apr 2008 14:23:03 -0400 Original-Received: from mailman by lists.gnu.org with tmda-scanned (Exim 4.43) id 1JmCHO-0002BZ-No for help-gnu-emacs@gnu.org; Wed, 16 Apr 2008 14:22:46 -0400 Original-Received: from exim by lists.gnu.org with spam-scanned (Exim 4.43) id 1JmCHN-0002BK-CG for help-gnu-emacs@gnu.org; Wed, 16 Apr 2008 14:22:46 -0400 Original-Received: from [199.232.76.173] (helo=monty-python.gnu.org) by lists.gnu.org with esmtp (Exim 4.43) id 1JmCHN-0002BH-4J for help-gnu-emacs@gnu.org; Wed, 16 Apr 2008 14:22:45 -0400 Original-Received: from mail.gmx.net ([213.165.64.20]) by monty-python.gnu.org with smtp (Exim 4.60) (envelope-from ) id 1JmCHM-0004H0-M3 for help-gnu-emacs@gnu.org; Wed, 16 Apr 2008 14:22:45 -0400 Original-Received: (qmail invoked by alias); 16 Apr 2008 18:22:40 -0000 Original-Received: from p57A201CB.dip0.t-ipconnect.de (EHLO arthur.local) [87.162.1.203] by mail.gmx.net (mp009) with SMTP; 16 Apr 2008 20:22:40 +0200 X-Authenticated: #3708877 X-Provags-ID: V01U2FsdGVkX1+GseRvj3CGWW8T2zBPg1ItxJ6rj1DhCL0tNSzYpa o2zPc0C9J7tEzX User-Agent: Gnus/5.13 (Gnus v5.13) Emacs/23.0.60 (gnu/linux) X-Y-GMX-Trusted: 0 X-detected-kernel: by monty-python.gnu.org: Genre and OS details not recognized. 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:53340 Archived-At: jadamson@partners.org (Joel J. Adamson) writes: > Jonathan Groll writes: > >> Is there a customisation option to stop TRAMP from asking for the sudo >> password upon launching emacs? Sometimes I don't want to do any sudo >> edits, but it still asks every time. This problem seems to have >> started after I opened some buffers with /sudo::/ , from what I can >> tell there is nothing in my .emacs or custom.el actively starting >> tramp. > > The only time I get asked for the password at startup is if I closed > Emacs with desktop-save-mode set to t, and a "/su::" file open. I make > sure to kill those buffers as soon as I'm done with them and then no > problems! Tramp 2.1 has a function to remove all remote buffers. The following might help you (untested): (add-hook 'desktop-save-hook 'tramp-cleanup-all-buffers) > If, on the other hand, you still get this behavior then please file a > bug report. Yes, please. > Joel Best regards, Michael.