←back to thread

Against /Tmp

(dotat.at)
140 points todsacerdoti | 1 comments | | HN request time: 0s | source
Show context
CarpaDorada ◴[] No.41913885[source]
Is it possible to configure every user to see /tmp as $USER/.tmp via some Linux isolation method (namespaces)?
replies(2): >>41913908 #>>41913926 #
1. notamy ◴[] No.41913926[source]
For a janky way of doing it, create a new mount namespace, then bind-mount $HOME/.tmp over /tmp. In practice better ways (ex. sibling comment) exist and you should use those.