Introduction
After you configure ClamAV, we recommend that you schedule a root
cron job to run daily during off-peak hours. The following example demonstrates a command that will scan the server’s accounts:
Procedure
The following example demonstrates a command that will scan the server’s accounts. This may be used within a cronjob in order to schedule scans during off-peak hours.
while read domain user; do /usr/local/cpanel/3rdparty/bin/clamscan -i -r /home/"$user" 2>&1; done </etc/trueuserdomains >>/root/infections.txt
Comments
0 comments
Article is closed for comments.