LinuxQuestions.org

LinuxQuestions.org (/questions/)
-   Linux - Newbie (https://www.linuxquestions.org/questions/linux-newbie-8/)
-   -   ClamAV with WHM and Centos 5.8 (https://www.linuxquestions.org/questions/linux-newbie-8/clamav-with-whm-and-centos-5-8-a-943222/)

osmy 05-04-2012 04:10 AM

ClamAV with WHM and Centos 5.8
 
Hello I installed ClamAv via WHM. Everything is working great on command line. But I want to run cronjob to update virus database daily with freshclam command and scan entire dedicated server everyday(mails,wws,ftps,/home etc.) on midnight(low load) for removing security threats and viruses on server. I will run crons on root. Please help me to create cronjob for virus db update and daily virus scan and remove for entire server.

I appreciate!

Thanks

John VV 05-04-2012 05:15 AM

Quote:

for removing security threats and viruses on server
you do know that ClamAV dose not remove them , right?
It only informs you about them

Are there any "SELinuxTroubleShooter" errors ?
what are the file/folder permissions ?
how exactly ARE you setting up the cron job ?

Quote:

daily virus scan and remove for entire server.
clam scans it dose not remove

osmy 05-04-2012 12:35 PM

What you think?

0 4 * * * /usr/bin/freshclam; clamdscan --move=/var/quarantine/ -v /home

osmy 05-04-2012 12:40 PM

OR


0 4 * * * /usr/bin/freshclam; clamdscan --remove -v /home

osmy 05-07-2012 09:33 AM

No one =(

osmy 05-07-2012 09:39 AM

found this:

30 5 * * * /usr/bin/clamscan /home -ir --remove=yes

John VV 05-07-2012 06:40 PM

to repeat:
Are there any "SELinuxTroubleShooter" errors ?
what are the file/folder permissions ?
how exactly ARE you setting up the cron job ?

freshclam needs to run as root
so how did you set up the cron job ?


All times are GMT -5. The time now is 11:38 AM.