From: jadamson@partners.org (Joel J. Adamson)
To: Michael Albinus <michael.albinus@gmx.de>
Cc: help-gnu-emacs@gnu.org
Subject: Re: How to stop TRAMP from asking for sudo password on every startup?
Date: Fri, 18 Apr 2008 09:25:55 -0400 [thread overview]
Message-ID: <87tzhze1lo.fsf@W0053328.mgh.harvard.edu> (raw)
In-Reply-To: <873apl1wui.fsf@gmx.de> (Michael Albinus's message of "Wed, 16 Apr 2008 20:24:53 +0200")
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.
next prev parent reply other threads:[~2008-04-18 13:25 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
2008-04-18 13:25 ` Joel J. Adamson [this message]
[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
List information: https://www.gnu.org/software/emacs/
* Reply using the --to, --cc, and --in-reply-to
switches of git-send-email(1):
git send-email \
--in-reply-to=87tzhze1lo.fsf@W0053328.mgh.harvard.edu \
--to=jadamson@partners.org \
--cc=help-gnu-emacs@gnu.org \
--cc=michael.albinus@gmx.de \
/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.
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for read-only IMAP folder(s) and NNTP newsgroup(s).