If you use a ClamAV GUI, you’ll probably have a toggle for this.
If you use the command line version, you can find the documentation for on-access scanning here. Basically: open /etc/clamav/clamav.conf, set ScanOnAccess and OnAccessPrevention to yes and make sure OnAccessExcludeUname is set to clamd or whatever clam system user your system uses.
If you use a ClamAV GUI, you’ll probably have a toggle for this.
If you use the command line version, you can find the documentation for on-access scanning here. Basically: open
/etc/clamav/clamav.conf
, setScanOnAccess
andOnAccessPrevention
toyes
and make sureOnAccessExcludeUname
is set toclamd
or whatever clam system user your system uses.