Pat Collins wrote:
Ok.  I've read the faq and followed the directions to a tee, but I still
can't get qmail-scanner and clamdscan to talk.

The problem is that the messages in /var/spool/qmailscan/tmp/ are being
written as uid root and gid root with only perms for the root user to
access.  What should the file perms be on the files in tmp/?  Is this a
umask problem?  Umask is 0022.

System is gentoo, qmail/qmail-scanner installed as near to lwq as I can
remember.



It sounds like qmail-scanner is running as root and not qscand like it should. What was your ./configure line for qmail-scanner? Did you specify --qs-user?


The following are the the permissions on everything in the qmailscan dir:

[EMAIL PROTECTED] qmailscan]# ls -al /var/spool/qmailscan/
total 1604
drwxrwxr-x 5 qscand qscand 4096 Nov 17 10:32 .
drwxr-xr-x 13 root root 4096 Aug 27 07:48 ..
-rw------- 1 qscand root 41 Nov 5 11:40 qmail-scanner-queue-version.txt
drwxrwxr-- 5 qscand qscand 4096 Mar 24 2004 quarantine
-rw-r----- 1 qscand root 12288 Nov 1 12:16 quarantine-attachments.db
-rw-rw-r-- 1 qscand qscand 4903 Aug 6 12:59 quarantine-attachments.txt
-rw-rw-r-- 1 qscand qscand 1590842 Jan 27 15:18 quarantine.log
drwxrwxr-- 4 qscand qscand 4096 Jan 27 16:41 tmp
lrwxrwxrwx 1 qscand qscand 31 Nov 1 12:16 viruses -> /var/spool/qmailscan/quarantine
lrwxrwxrwx 1 qscand qscand 35 Nov 1 12:16 viruses.log -> /var/spool/qmailscan/quarantine.log
drwxrwxr-- 5 qscand qscand 4096 Feb 23 2004 working


/tmp (as well as everything else) should be owned by qscand. Clamav should also be running as user qscand which you can configure in /etc/clamd.conf. I dont really know the lwq install, but does it really expect you to run qmail-scanner as root? That just doesnt sound right.

-Jim


------------------------------------------------------- This SF.Net email is sponsored by: IntelliVIEW -- Interactive Reporting Tool for open source databases. Create drag-&-drop reports. Save time by over 75%! Publish reports on the web. Export to DOC, XLS, RTF, etc. Download a FREE copy at http://www.intelliview.com/go/osdn_nl _______________________________________________ Qmail-scanner-general mailing list Qmail-scanner-general@lists.sourceforge.net https://lists.sourceforge.net/lists/listinfo/qmail-scanner-general

Reply via email to