3 ms·
If your Mac has multiple users, putting your downloads and screenshots in /tmp might make them visible to anyone else logged in to the machine.
by SoftTalker 3y ago
If your Mac has multiple users, putting your downloads and screenshots in /tmp might make them visible to anyone else logged in to the machine.
- matthew-wegner 3y agoThe article mentions /tmp is symlinked to /private/tmp
- dijit 3y agoMacOS has a $tmpdir env var that you could use instead, it's mapped per-user. I think /tmp/ is auto-mapped to /private/tmp though, which is also user-specific.
- SoftTalker 3y agoAh I didn't know that; not a frequent Mac user. Edit: after a bit of web searching, I'm not finding any suggestion that /private is somehow mapped per-user. Is this actually true?
- dvzk 3y ago/private and /private/tmp are shared between all users (including non-login users). $TMPDIR is safer for sensitive files, but it lacks the macOS sandboxing protection on ~/Downloads.