3 ms·
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 o
by jmclnx 2y ago
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.
- stevekemp 2y agoBack in the day I used libpam-tmpdir for that purpose - it covered SSH and other services that used PAM.