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

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

Re: emacs in ~/.cache


From: Emanuel Berg
Subject: Re: emacs in ~/.cache
Date: Tue, 22 Aug 2023 21:22:07 +0200
User-agent: Gnus/5.13 (Gnus v5.13)

Michael Albinus wrote:

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

Thank you, this was a pleasant explanation.

-- 
underground experts united
https://dataswamp.org/~incal




reply via email to

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