[clamav-users] How to get rid of or Fix clamonacc error
newcomer01
newcomer01 at posteo.de
Fri Mar 24 09:44:53 UTC 2023
--database="/etc/clamav/freshclam.conf" \ here you should have to path to your .cvd, .dat, so on files
and not the dir to you conf file - clamscan did not support to read the con.file while scanning
see clamscan --help
i think, this here will also not work, you create dynamically by date your log files, this is okay but the option --log="" did'nt create this file if it not exists.
Maybe you should have a rule that creates this log file, if it not exists -> read doku for touch
this here i would change additionally:
/usr/bin/clamscan --exclude ="^/home/tmick/.clamtk/viruses/" \
/usr/bin/clamscan \
--exclude ="^/home/tmick/.clamtk/viruses/" \
but now it looks good for me, this should work now - good job.
kind greetings
Marc
Von / From: Clamav User Mailinglist <mailto:clamav-users at lists.clamav.net>
An / To: Newcomer01 <mailto:newcomer01 at posteo.de>
CC / CC: Tim Mcconnell <mailto:tmcconnell168 at gmail.com>
Gesendet / Sent: Donnerstag, März 23, 2023 um 23:32 (at 11:32 PM) +0100
Betreff / Subject: Re: [clamav-users] How to get rid of or Fix clamonacc error
> Okay Marc,
> I came up with this:
> #/bin/bash
> declare clammy.sh
>
> PATH=/bin:/usr/bin:/sbin:/usr/sbin
>
> /usr/bin/clamscan --exclude ="^/home/tmick/.clamtk/viruses/" \
> --exclude="^/home/tmick/Documents/ACI_Learning/CEH/" \
> --exclude="^/home/tmick/Nextcloud/Documents/ACI_Learning/" # Try to
> exclude everything in ACI_Learning dir
> --exclude="^/home/tmick/Nextcloud/" # Try to exclude everything under
> Nextcloud dir
> --exclude="^/run/user/tmick/gvfs/" \
> --exclude="^/home/tmick/.gvfs/" \
> --exclude="^/home/tmick/.evolution" \
> --detect-pua="yes" \
> --recursive="yes" \
> --quiet \
> --infected \
> --database="/etc/clamav/freshclam.conf" \
> --log="$HOME/.clamtk/history/$(date '+%b-%d-%Y').log" #Just log until
> I'm sure this works :-)
>
More information about the clamav-users
mailing list