←back to thread

Against /Tmp

(dotat.at)
143 points todsacerdoti | 2 comments | | HN request time: 0.001s | source
1. jmclnx ◴[] No.41913937[source]
What I do is all users get TMPDIR set to /tmp/$USER and /etc/rc.d/rc.local will create these as 700 on boot. Plus a script in /etc/profile.d/ will set TMPDIR on login for the users. With this you get /tmp cleanup on boot.

As as someone said, you can mount /tmp as tmpfs if you can spare the memory.

replies(1): >>41915540 #
2. stevekemp ◴[] No.41915540[source]
Back in the day I used libpam-tmpdir for that purpose - it covered SSH and other services that used PAM.