securing tmp directories
Should i secure /var/tmp or /tmp directories ?
Any guide on this .
thank you
5 Replies
@sweh:
Those directories must be owned by root and group root and must be permission 1777 ("ls -ld /tmp" should show drwxrwxrwt). Anything else is a problem and will break things.
% ls -ld /tmp /var/tmp
drwxrwxrwt 4 root root 4096 May 23 22:28 /tmp
drwxrwxrwt 2 root root 4096 May 18 06:25 /var/tmp
Also by having /tmp on its own partition if something goes crazy, from malice or mistake, with writing to it your entire drive won't get filled.
Some information on this at
I know you are running CentOS but same things apply.