Support for security such as Firewalls and securing linux
Post Reply
Posts: 1
Joined: 2020/09/09 17:45:27


Post by davidhud23 » 2020/09/09 18:04:08

I ran a manual clamscan of my whole centOS 8.2 system with clamav. I had one infected file in the summary and approximately 25,000 errors. I don't know where infected file is. I also don't know if the scan was beneficial due to the huge number of errors. So, how do I find the infected file and what
is your good advice for using clamav???

User avatar
Forum Moderator
Posts: 29491
Joined: 2009/09/24 10:40:56
Location: Brighton, UK

Re: clamav

Post by TrevorH » 2020/09/09 18:09:23

As what user were you running? If it wasn't root then at least some of your errors will likely be "permission denied". And depending on how you invoked it, it might do that as root too. Did you exclude anything ? You will need to - no point in scanning /dev /proc or /sys for example. And what errors? Did you try piping stdout and stderr to different places - I presume clamscan will send errors to stderr and non-errors to stdout...
CentOS 6 will die in November 2020 - migrate sooner rather than later!
Info for USB installs on
CentOS 5 is dead, do not use it.
Full time Geek, part time moderator. Use the FAQ Luke

User avatar
Posts: 322
Joined: 2013/12/18 15:04:03
Location: xfs file system

Re: clamav

Post by KernelOops » 2020/09/09 19:45:47

You can also use the -i and -o parameters, which are very helpful in these situations

Code: Select all

       -i, --infected
              Only print infected files.

       -o, --suppress-ok-results
              Skip printing OK files
I love my computer - all my friends live there.

Post Reply

Return to “CentOS 8 - Security Support”