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

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

Re: emacs in ~/.cache


From: Michael Albinus
Subject: Re: emacs in ~/.cache
Date: Tue, 22 Aug 2023 17:45:51 +0200
User-agent: Gnus/5.13 (Gnus v5.13)

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.



reply via email to

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