Hi there,
On Fri, 23 Oct 2020, Marcy Rogers via clamav-users wrote:
> Good Morning,
Good evening. :)
> I have Clamav on Windows Servers. I am running clamd.exe in powershell
> with this command, .\clamd.exe
>
> Do you need to put the config file in there for clamd.exe to read it? I
> understood that just running clamd.exe should read the config file.
Most tools which use a configuration file will have a 'default'
location (often more than one location) where they will look for a
configuration file if they aren't told where to look for it in the
command itself. The clamd daemon has such a default but I don't know
what it is for your system, you should be able to find documentation
which tells you. The same documentation will tell you how to specify
the location of the file on the command line.
> I am asking because the clamd.exe is not reading my config file because I
> have excluded c:windows but it is still scanning c:\windows folder.
To be clear, are we talking about the 'ExcludePath' directive?
Sometimes tools are fussy about the precise syntax of configration
options. If your clamd is reading the configuration file which you
think it is reading and you have properly set the exclusion in the
configuration then you may need to experiment with the syntax. As I
don't use clamd on Windows I have no experience to offer but I'm sure
that someone else here will.
The clamd daemon does not itself scan things from the command line.
Another tool such as clamdscan (which uses clamd to do the scan) or
clamscan (which doesn't) will do that. So if you run clamd.exe from
the command line would not expect a scan to take place immediately,
all that I'd expect to happen is that the daemon would be started.
--
73,
Ged.
_______________________________________________
clamav-users mailing list
clamav-users@lists.clamav.net
https://lists.clamav.net/mailman/listinfo/clamav-users
Help us build a comprehensive ClamAV guide:
https://github.com/vrtadmin/clamav-faq
http://www.clamav.net/contact.html#ml