-rwx------ 1 clamav adm 939 Jul 19 13:11 /etc/clamav/freshclam.conf*
This file is owned by clamav in group adm. Running freshclam with that user and group enables it to read the freshclam.conf file. (Actually the group ownership doesn't matter here.)
You could set up a task in /etc/crontab that would run that command nightly
Code:
31 4 * * * clamav /path/to/freshclam >> /var/log/freshclam.log 2>&1
would run the freshclam program as user clamav every morning at 4:31 am. Replace "/path/to" with the actual path. /usr/bin/freshclam perhaps? Its output will be written to /var/log/freshclam.log. The "2>&1" item directs any errors written to the SYSERR device to the log file along with the normal program output. You might need to create the freshclam.log file manually to start since it needs to be owned by user clamav.
Code:
cd /var/log
sudo touch freshclam.log
sudo chown clamav:adm freshclam.log
Bookmarks