Tripolis

Active Member
Sep 29, 2012
44
0
6
cPanel Access Level
Website Owner
Hey,
some mails about "Suspicious File Alert" have arrived.

I know what it is but the message comes.
/tmp/

Is there a problem to delete all files in /tmp/ ?
A cronjob can by handle this automatical?

Regards
 

carlosbss

Member
Jan 6, 2007
6
0
151
It could be a probl as it deletes session files and probably some temp files for programs running. But you could make a cron to delete all .zip, .php and so on.
 

ThinIce

Well-Known Member
Apr 27, 2006
352
9
168
Disillusioned in England
cPanel Access Level
Root Administrator
If the file is actually malicious, it would be good to discover via which account it is being uploaded and close any scripting vulnerability or compromise allowing the upload. Is your tmp mounted in a "secure" fashion?

Many php scripts will just use the values set by php for session.save_path and upload_tmp_dir unless they have been configued to use areas within the account itself.