From: Michael Albinus <michael.albinus@gmx.de>
To: help-gnu-emacs@gnu.org
Subject: Re: emacs in ~/.cache
Date: Tue, 22 Aug 2023 17:45:51 +0200 [thread overview]
Message-ID: <871qfvrsgg.fsf@gmx.de> (raw)
In-Reply-To: <87r0nyd7cq.fsf@dataswamp.org> (Emanuel Berg's message of "Sat, 19 Aug 2023 23:56:21 +0200")
Emanuel Berg <incal@dataswamp.org> writes:
Hi Emanuel,
>> Tramp 2.7 (of Emacs 30) uses ~/.cache/emacs as temporary
>> directory, if possible. The reason are
>> security considerations.
>
> I have a Tramp socket file there on Debian, it is the
> only file.
>
> It gets more secure that way?
~/.cache has 0700 file permissions. Other users have no access.
> What happens if you remove that directory, will it still work
> the next time, just a similar file has to be created first
> before use?
If you remove it while Emacs is running you're lost. Don't do that!
When Tramp is loaded, and ~/.cache exists, ~/.cache/emacs will be
(re-)created if it doesn't exist. Otherwise, /tmp will be used (or
whatever value of temporary-file-directory).
See the initialization of tramp-compat-temporary-file-directory in
tramp-compat.el.
Best regards, Michael.
next prev parent reply other threads:[~2023-08-22 15:45 UTC|newest]
Thread overview: 12+ messages / expand[flat|nested] mbox.gz Atom feed top
2023-08-13 12:17 emacs in ~/.cache Colin Baxter
2023-08-13 12:24 ` Eli Zaretskii
2023-08-13 15:43 ` Colin Baxter
2023-08-13 16:18 ` Eli Zaretskii
2023-08-13 16:16 ` Sven Joachim
2023-08-13 13:52 ` Michael Albinus
2023-08-13 15:38 ` Colin Baxter
2023-08-13 16:13 ` Michael Albinus
2023-08-13 17:42 ` Colin Baxter
2023-08-19 21:56 ` Emanuel Berg
2023-08-22 15:45 ` Michael Albinus [this message]
2023-08-22 19:22 ` Emanuel Berg
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=871qfvrsgg.fsf@gmx.de \
--to=michael.albinus@gmx.de \
--cc=help-gnu-emacs@gnu.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.
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).