help-gnu-emacs
[Top][All Lists]
Advanced

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

Re: How to stop TRAMP from asking for sudo password on every startup?


From: Michael Albinus
Subject: Re: How to stop TRAMP from asking for sudo password on every startup?
Date: Wed, 16 Apr 2008 20:24:53 +0200
User-agent: Gnus/5.13 (Gnus v5.13) Emacs/23.0.60 (gnu/linux)

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 via email to

[Prev in Thread] Current Thread [Next in Thread]