Skip to main content

Need Help with ClamAV Cron Job

Comments

3 comments

  • bgarrant
    Is this the cron I need to run to remove the files and also email me the results daily? while read domain user; do /usr/local/cpanel/3rdparty/bin/clamscan -i -r --remove /home/"$user" 2>&1; done >/root/infections.txt
    0
  • bgarrant
    does anyone know if this is correct way to scan, remove infected files and also send an email notification to root? while read domain user; do /usr/local/cpanel/3rdparty/bin/clamscan -i -r --remove /home/"$user" 2>&1; done >/root/infections.txt
    0
  • cPanelLauren
    Clamscan provides options to move the infected files to a specific directory - commands for this can be found here: ClamavNet Sometimes infected files are actually legitimate and necessary files with inserted code - you wouldn't necessarily want to outright delete them
    0

Please sign in to leave a comment.