LinuxQuestions.org
Download your favorite Linux distribution at LQ ISO.
Home Forums Tutorials Articles Register
Go Back   LinuxQuestions.org > Forums > Linux Forums > Linux - Newbie
User Name
Password
Linux - Newbie This Linux forum is for members that are new to Linux.
Just starting out and have a question? If it is not in the man pages or the how-to's this is the place!

Notices


Reply
  Search this Thread
Old 05-04-2012, 04:10 AM   #1
osmy
Member
 
Registered: Mar 2011
Posts: 58

Rep: Reputation: 0
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
 
Old 05-04-2012, 05:15 AM   #2
John VV
LQ Muse
 
Registered: Aug 2005
Location: A2 area Mi.
Posts: 17,624

Rep: Reputation: 2651Reputation: 2651Reputation: 2651Reputation: 2651Reputation: 2651Reputation: 2651Reputation: 2651Reputation: 2651Reputation: 2651Reputation: 2651Reputation: 2651
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

Last edited by John VV; 05-04-2012 at 05:16 AM.
 
Old 05-04-2012, 12:35 PM   #3
osmy
Member
 
Registered: Mar 2011
Posts: 58

Original Poster
Rep: Reputation: 0
What you think?

0 4 * * * /usr/bin/freshclam; clamdscan --move=/var/quarantine/ -v /home
 
Old 05-04-2012, 12:40 PM   #4
osmy
Member
 
Registered: Mar 2011
Posts: 58

Original Poster
Rep: Reputation: 0
OR


0 4 * * * /usr/bin/freshclam; clamdscan --remove -v /home
 
Old 05-07-2012, 09:33 AM   #5
osmy
Member
 
Registered: Mar 2011
Posts: 58

Original Poster
Rep: Reputation: 0
No one =(
 
Old 05-07-2012, 09:39 AM   #6
osmy
Member
 
Registered: Mar 2011
Posts: 58

Original Poster
Rep: Reputation: 0
found this:

30 5 * * * /usr/bin/clamscan /home -ir --remove=yes
 
Old 05-07-2012, 06:40 PM   #7
John VV
LQ Muse
 
Registered: Aug 2005
Location: A2 area Mi.
Posts: 17,624

Rep: Reputation: 2651Reputation: 2651Reputation: 2651Reputation: 2651Reputation: 2651Reputation: 2651Reputation: 2651Reputation: 2651Reputation: 2651Reputation: 2651Reputation: 2651
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 ?
 
  


Reply



Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is Off
HTML code is Off



Similar Threads
Thread Thread Starter Forum Replies Last Post
[SOLVED] rkHunter package manager fail warnings on CentOS 5 running WHM 11 mrBlik Linux - Security 4 03-31-2011 05:13 PM
Snort on CentOS with CPanel/WHM Question athomas Linux - Software 4 06-01-2010 07:29 AM
Deleted /etc on centos with whm. Howto recreate passwd? fandar Linux - Server 2 01-28-2010 12:42 PM
unexpected reboot - linux server - centos 5.1 - cPanel / WHM GiotisSL Linux - Server 1 03-28-2008 05:42 PM
Centos 4.4, Spamassassin and ClamAV JediKnight2 Linux - Software 1 03-11-2007 09:09 AM

LinuxQuestions.org > Forums > Linux Forums > Linux - Newbie

All times are GMT -5. The time now is 08:22 AM.

Main Menu
Advertisement
My LQ
Write for LQ
LinuxQuestions.org is looking for people interested in writing Editorials, Articles, Reviews, and more. If you'd like to contribute content, let us know.
Main Menu
Syndicate
RSS1  Latest Threads
RSS1  LQ News
Twitter: @linuxquestions
Open Source Consulting | Domain Registration