I've just had a look at my working clamav 0.60/q-s 1.20rc3 server and clamd seems to be running as root by default. this is not the case on the new server using clamav 0.65, clamd runs as clamav by default now.
which is the less insecure method, running clamd as root or chmodding /var/spool/qmailscan 777 ?


Hi,

I had a similar problem and the advice I got was:
chmod 777 /var/spool/qmailscan -R
That error went away after that.  Clamav is giving me other errors now that I'll
have to deal with later.

I hope this helps
Bob
Kieran ([EMAIL PROTECTED]) wrote:

I've been trying to fix this for most of today and don't seem to be
getting anywhere. Using netqmail-1.04, qmail-scanner 1.20 and clamav
0.65. Virus
laden messages are being let through because clamdscan can't read the
files within /var/spool/qmailscan/tmp/

scanloop: starting scan of directory
"/var/spool/qmailscan/tmp/mailscan1075221069461574"...
scanloop: scanner=clamuko_scanner,plain_text_msg=0
clamuko: starting scan of directory
"/var/spool/qmailscan/tmp/mailscan1075221069461574"...
run /usr/local/bin/clamdscan -r --disable-summary --max-recursion=10
--max-space=1000000  /var/spool/qmailscan/tmp/mailscan1075221069461574 2>&1
--output of clamuko was:
/var/spool/qmailscan/tmp/mailscan1075221069461574: Can't access the file
ERROR

permissions are as follows:

[EMAIL PROTECTED]:/home/admin# ls -als /var/spool/
total 4
  1 drwxr-xr-x    7 root     root          176 Jan 15 11:34 .
  1 drwxr-xr-x   14 root     root          384 Jan 14 16:21 ..
  1 drwxr-x--x    3 root     root           72 Jan 27 15:47 cron
  1 drwxrwxrwt    2 root     mail           72 Jan 13 16:56 mail
  1 drwxr-xr-x    2 root     root           48 May 26  1994 pcnfs
  1 drwxrwx---    5 qscand   qscand        432 Jan 27 15:30 qmailscan
  1 drwxr-xr-x    2 root     root           48 Feb 12  1994 rwho
[EMAIL PROTECTED]:/home/admin# ls -als /var/spool/qmailscan/
total 128
  1 drwxrwx---    5 qscand   qscand        432 Jan 27 15:30 .
  1 drwxr-xr-x    7 root     root          176 Jan 15 11:34 ..
 56 -rw-------    1 qscand   nofiles     53784 Jan 27 16:31
qmail-queue.log
  4 -rw-------    1 qscand   nofiles       718 Jan 27 02:00
qmail-queue.log.1
  4 -rw-------    1 qscand   qscand         35 Jan 27 02:00
qmail-scanner-queue-version.txt
  1 drwxrwx---    5 qscand   qscand        120 Jan 15 11:34 quarantine
 48 -rw-r-----    1 qscand   nofiles     49152 Jan 27 14:33
quarantine-attachments.db
  8 -rw-rw----    1 qscand   qscand       4279 Jan 15 11:34
quarantine-attachments.txt
  4 -rw-rw----    1 qscand   qscand        164 Jan 15 11:35 quarantine.log
  1 drwxrwx---    2 qscand   qscand         48 Jan 27 16:31 tmp
  1 lrwxrwxrwx    1 qscand   qscand         31 Jan 15 11:34 viruses ->
/var/spool/qmailscan/quarantine
  1 lrwxrwxrwx    1 qscand   qscand         35 Jan 15 11:34
viruses.log -> /var/spool/qmailscan/quarantine.log
  1 drwxrwx---    5 qscand   qscand        120 Jan 15 11:34 working

any clever ideas?







-------------------------------------------------------
The SF.Net email is sponsored by EclipseCon 2004
Premiere Conference on Open Tools Development and Integration
See the breadth of Eclipse activity. February 3-5 in Anaheim, CA.
http://www.eclipsecon.org/osdn
_______________________________________________
Qmail-scanner-general mailing list
[EMAIL PROTECTED]
https://lists.sourceforge.net/lists/listinfo/qmail-scanner-general



--
Assured Computing
When you need to be sure.
[EMAIL PROTECTED]
www.assuredcomp.com
Eugene, Oregon




------------------------------------------------------- The SF.Net email is sponsored by EclipseCon 2004 Premiere Conference on Open Tools Development and Integration See the breadth of Eclipse activity. February 3-5 in Anaheim, CA. http://www.eclipsecon.org/osdn _______________________________________________ Qmail-scanner-general mailing list [EMAIL PROTECTED] https://lists.sourceforge.net/lists/listinfo/qmail-scanner-general




-------------------------------------------------------
The SF.Net email is sponsored by EclipseCon 2004
Premiere Conference on Open Tools Development and Integration
See the breadth of Eclipse activity. February 3-5 in Anaheim, CA.
http://www.eclipsecon.org/osdn
_______________________________________________
Qmail-scanner-general mailing list
[EMAIL PROTECTED]
https://lists.sourceforge.net/lists/listinfo/qmail-scanner-general

Reply via email to