3 ms·
That's not quite how things work, file permissions don't magically go way just because they land in tmp, this is only a problem if your file permissions are set
by dathinab 2y ago
That's not quite how things work, file permissions don't magically go way just because they land in tmp, this is only a problem if your file permissions are setup wrongly and implicitly relied on parent folders etc.
But then file permissions being "wrong" or relying on the parent folder is the norm...
I wonder if it does keep ACLs associated with the file.
- bravetraveler 2y agoTake this prior art for example: ~ $ ll -d $HOME/.local/share/Trash drwx------. 5 me me 47 Jan 15 2020 /home/me/.local/share/Trash Home directories and the root they're stored in aren't generally well-protected, trash directories should do so to avoid leaking. Per the XDG spec if this is open, you want sticky bits. More justice (and considerations) here: https://specifications.freedesktop.org/trash-spec/latest/ https://specifications.freedesktop.org/trash-spec/latest/ An interesting challenge or angle to this: space consumption, ownership in a real-world sense (ie: fingerpointing)