ClamAV On-Access Scanner

Discussion in 'Tips/Tricks/Mods' started by concept21, Jan 16, 2025.

  1. concept21

    concept21 Active Member

    Hello Friends,
    If you are a Clamav user, it may be useful to you.
    Newer version of Clamav comes with an On-Access Scanner.

    Here are my set up steps:
    Log in as root:
    su -l root

    Then, create a new directory /root/quarantine/ :
    cd ~
    mkdir quarantine
    logout

    Then, in file /etc/clamav/clamd.conf, add these lines:
    OnAccessExcludeRootUID yes
    OnAccessExcludeUname clamav
    OnAccessIncludePath /tmp/
    OnAccessIncludePath /var/tmp/ # additional path to be scanned.
    OnAccessExcludePath /some_path/ # additional path to be excluded.
    OnAccessPrevention yes


    Then, run:
    sudo systemctl enable clamav-clamonacc.service
    sudo systemctl start clamav-clamonacc.service

    Done but I do not know whether it works better than other virus scanners. :D
    If you use other type of virus scanners such as Malware Detect, etc, their jobs may overlapped. So please add your opinions as well.
     
    Last edited: Jan 17, 2025
    ahrasis likes this.

Share This Page