tmp should be owned by root:root problem

evtimii

Verified User
Joined
Oct 23, 2010
Messages
6
I'm trying to secure the /tmp directory(es). CSF gives me this errors:



/tmp should be owned by root:root

/var/tmp should be owned by root:root

/usr/tmp should be owned by root:root



When I run the command:

chown -R root:root /tmp

then

chown -R root:root /var/tmp

and then

chown -R root:root /usr/tmp

the tmp is set and secured ... ... until the next reboot - then the error appears again in the CSF.

How can I "permanently" chown the /tmp directory(es) and after the reboot the /tmp, /var/tmp and /usr/tmp to be owned by root:root (without the need of a cron job) ?
 
Thanks for you response tomtom901 - I've tried that too, but without success.
 
Back
Top