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: Joel J. Adamson
Subject: Re: How to stop TRAMP from asking for sudo password on every startup?
Date: Fri, 18 Apr 2008 09:25:55 -0400
User-agent: Gnus/5.13 (Gnus v5.13) Emacs/23.0.60 (gnu/linux)

Michael Albinus <michael.albinus@gmx.de> writes:

> 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)
>

Sweet!  That will save me thirty seconds at the end of every day ;)

Joel

-- 
Joel J. Adamson
Biostatistician
Pediatric Psychopharmacology Research Unit
Massachusetts General Hospital
Boston, MA  02114
(617) 643-1432
(303) 880-3109
Public key: http://pgp.mit.edu

The information transmitted in this electronic communication is intended only
for the person or entity to whom it is addressed and may contain confidential
and/or privileged material. Any review, retransmission, dissemination or other
use of or taking of any action in reliance upon this information by persons or
entities other than the intended recipient is prohibited. If you received this
information in error, please contact the Compliance HelpLine at 800-856-1983 and
properly dispose of this information.







reply via email to

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