Linux Malware Detect Question

hi,
i had an issue a few days ago where df -i gave me 100% usage, caused from the existence of too many /usr/local/maldetect.bkxxxx directories.
i had to delete the dirs manually in order to solve the problem.
is there any way to automatically delete those files? should i use a cron job for that or maldetect has its own mechanism for deleting old dirs?

Staff Member

Please keep in mind that it's a third-party application, so you may want to consult with it's documentation to see if it's possible to modify it's retention configuration. Otherwise, yes, you should create a cron job that removes those directories if you determine they are not required.

hey Mike,
i sure did that but i haven't found a solution so i thought to ask here and see how other cpanel users deal with it.
it is obvious that a lot of people are using maldetect on cpanel servers and i really need to know how they deal with /usr/local/maldetect.bkxxxx directories.