Take the 2-minute tour ×
Server Fault is a question and answer site for professional system and network administrators. It's 100% free, no registration required.

We generate cache files for combined site assets such as javascript and css. We currently store these files in /tmp but with everything else in there it is making the cleanup routines awkward to setup. Are we safe to switch to using /home/USER/tmp instead? Does this area have an automated cleanup routine that I need to be aware of? I've noticed there are currently files in there for Awstats / webalizer / cpbandwidth.

This is using CentOS btw.

share|improve this question
add comment

2 Answers

up vote 2 down vote accepted

I would say that it's probably better to store the files in /tmp/USER, rather than under the user's home directories. First of all, the permissions on /tmp are generally more accessible, which may come into play if your server config changes in the future, or if you need to write some type of cleanup script. Second, why expose the users to these tmp files? Is there any reason that they would need to modify them directly?

If not, better to keep them out of sight -- which is the purpose of the /tmp directory.

share|improve this answer
    
i think you're probably right, only solution really is better organisation of /tmp –  seengee May 18 '09 at 12:05
add comment

Unless you set your own clean up script for /home/USER/tmp, there is nothing, that I know of, setup as a default for that directory on CentOS. You might want to ask your host, as they might have done custom configurations that might apply to you (having Awstats/webalizer, etc files on /home/USER/tmp is not the norm).

share|improve this answer
    
will check with host about this but will probably keep in /tmp but organise better –  seengee May 18 '09 at 12:07
add comment

Your Answer

 
discard

By posting your answer, you agree to the privacy policy and terms of service.

Not the answer you're looking for? Browse other questions tagged or ask your own question.