[EMAIL PROTECTED] wrote:


Kill all your freshclam and clamd processes.  Put your .pid and socket files in 
a place that clamd can write.  clamd starts as root, but if it needs to SIGHUP, 
it needs to recreate the .pid files and reinitialize the socket as clamd.
I've done all this now but it still gets the same error

clamdscan --config-file=/usr/local/etc/clamd.conf abc
/var/spool/virtual/thediscshop.com.au/abc: Access denied. ERROR

----------- SCAN SUMMARY -----------
Infected files: 0
Time: 0.000 sec (0 m 0 s)

I did the following changes

1. I added a new directory /var/run/clamav
drwxr-xr-x    2 clamav   clamav       4096 Dec  1 14:08 clamav

Seemed to load and run okay, but if i do a clamd QUIT

i get this error message in the log file

ERROR: Socket file /var/run/clamav/clamd is in use by another process.

if i clear out the directory and then run clamd

if then has

srwxrwxrwx    1 clamav   clamav          0 Dec  2 11:01 clamd
-rw-r-----    1 root     root          707 Dec  2 11:01 clamd.log
-rw-rw----    1 clamav   clamav          5 Dec  2 11:01 clamd.pid

with the log file being
+++ Started at Fri Dec  2 11:01:34 2005
clamd daemon 0.87.1 (OS: linux-gnu, ARCH: i386, CPU: i686)
Log file size limited to 1048576 bytes.
Running as user clamav (UID 505, GID 506)
Reading databases from /var/lib/clamav
Protecting against 41294 viruses.
Unix socket file /var/run/clamav/clamd
Setting connection queue length to 15
Archive: Archived file size limit set to 10485760 bytes.
Archive: Recursion level limit set to 8.
Archive: Files limit set to 1000.
Archive: Compression ratio limit set to 250.
Archive support enabled.
Archive: RAR support disabled.
Portable Executable support enabled.
Mail files support enabled.
OLE2 support enabled.
HTML support enabled.
Self checking every 1800 seconds.

after i run clamd QUIT all file remain with the addition of this to the log
+++ Started at Fri Dec  2 11:03:23 2005
clamd daemon 0.87.1 (OS: linux-gnu, ARCH: i386, CPU: i686)
Log file size limited to 1048576 bytes.
Running as user clamav (UID 505, GID 506)
Reading databases from /var/lib/clamav
Protecting against 41294 viruses.
ERROR: Socket file /var/run/clamav/clamd is in use by another process.

Any thoughts as to what i might have done wrong?






_______________________________________________
http://lurker.clamav.net/list/clamav-users.html

Reply via email to