all messages for Emacs-related lists mirrored at yhetil.org
 help / color / mirror / code / Atom feed
From: Michael Albinus <michael.albinus@gmx.de>
To: jadamson@partners.org (Joel J. Adamson)
Cc: help-gnu-emacs@gnu.org
Subject: Re: How to stop TRAMP from asking for sudo password on every startup?
Date: Wed, 16 Apr 2008 20:24:53 +0200	[thread overview]
Message-ID: <873apl1wui.fsf@gmx.de> (raw)
In-Reply-To: 87wsmxhgz2.fsf@W0053328.mgh.harvard.edu

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.




  reply	other threads:[~2008-04-16 18:24 UTC|newest]

Thread overview: 8+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2008-04-16  8:45 How to stop TRAMP from asking for sudo password on every startup? Jonathan Groll
2008-04-16 15:37 ` Peter Dyballa
2008-04-16 17:01 ` Joel J. Adamson
2008-04-16 18:24   ` Michael Albinus [this message]
2008-04-18 13:25     ` Joel J. Adamson
     [not found] <mailman.10438.1208357924.18990.help-gnu-emacs@gnu.org>
2008-04-16 15:32 ` Jason Rumney
2008-04-17 11:21   ` Jonathan Groll
2008-04-17 17:17     ` Michael Albinus

Reply instructions:

You may reply publicly to this message via plain-text email
using any one of the following methods:

* Save the following mbox file, import it into your mail client,
  and reply-to-all from there: mbox

  Avoid top-posting and favor interleaved quoting:
  https://en.wikipedia.org/wiki/Posting_style#Interleaved_style

* Reply using the --to, --cc, and --in-reply-to
  switches of git-send-email(1):

  git send-email \
    --in-reply-to=873apl1wui.fsf@gmx.de \
    --to=michael.albinus@gmx.de \
    --cc=help-gnu-emacs@gnu.org \
    --cc=jadamson@partners.org \
    /path/to/YOUR_REPLY

  https://kernel.org/pub/software/scm/git/docs/git-send-email.html

* If your mail client supports setting the In-Reply-To header
  via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line before the message body.
Code repositories for project(s) associated with this external index

	https://git.savannah.gnu.org/cgit/emacs.git
	https://git.savannah.gnu.org/cgit/emacs/org-mode.git

This is an external index of several public inboxes,
see mirroring instructions on how to clone and mirror
all data and code used by this external index.