At 12:23 +1300 16-02-2004, Jason Haar wrote:On Sun, Feb 15, 2004 at 10:40:53PM +0000, Mark Pratt wrote:When I run sophie (and ClamAV) as the user qscand, I receive the message as
shown below. If I run Sophie as root, the processing completes as normal
and the message is delivered. What appears to be happening is that the
message is dropped into a directory under /var/spool/qmailscan/tmp/ which
is chown-ed by root.qmail and chmod 700. Obviously, poor old qscand does
not have access to this directory and the scan fails.
You have a horribly broken install then.
Since when would Q-S *EVER* be doing anything as root!!!!
I bet your using that broken Qmail-Toaster install. It installs reformime as setuid root - which means the message written into /var/spool/qmailscan/tmp/ is owned by root instead of qscand.
I can see why DJB has such issues with people creating distributions - total loss of quality control...
EVERYTHING UNDER /var/spool/qmailscan SHOULD BE OWNED BY "qscand"
Anything that changes that is broken.
Hi
I don't think the installer is broken... (I'm sure it isn't)
Mark, Have you done a manual install? I believe that you have installed 1.20st over an old 1.1x installation. If you let the installer do its work, then, there wouldn't be any problem.
./configure --qs-user qmailq --qs-group qmail (..other options..) --install
Then you will have something like this:
drwx------ 3 qmailq nofiles 4096 Feb 4 18:22 archives
-rw------- 1 qmailq qmail 2644535 Feb 16 08:57 qmail-queue.log
-rw------- 1 qmailq qmail 27016239 Feb 15 04:02 qmail-queue.log.1
-rw------- 1 qmailq qmail 1430974 Feb 8 04:02 qmail-queue.log.2
-rw------- 1 qmailq root 44 Feb 4 17:14 qmail-scanner-queue-version.txt
drwxrwx--- 5 qmailq qmail 4096 Jun 28 2003 quarantine
-rw-r----- 1 qmailq root 12288 Feb 4 17:14 quarantine-attachments.db
-rw-r--r-- 1 qmailq qmail 6086 Feb 1 19:01 quarantine-attachments.txt
-rw-rw---- 1 qmailq qmail 40730 Feb 16 08:46 quarantine.log
-rw-rw---- 1 qmailq qmail 265237 Feb 15 04:02 quarantine.log.1
-rw-rw---- 1 qmailq qmail 3855 Feb 8 04:02 quarantine.log.2
srwxrwx--- 1 qmailq qmail 0 Feb 13 16:37 sophie
-rwsr-xr-x 1 qmailq qmail 383 Jan 26 15:45 test-archive.pl
drwx------ 2 qmailq qmail 4096 Feb 16 08:57 tmp
lrwxrwxrwx 1 qmailq qmail 31 Feb 4 17:14 viruses -> /var/spool/qmailscan/quarantine
lrwxrwxrwx 1 qmailq qmail 35 Feb 4 17:14 viruses.log -> /var/spool/qmailscan/quarantine.log
drwxrwx--- 5 qmailq qmail 4096 Jun 28 2003 working
Let me know if you don't solve this.
Salvatore
Hi Salvatore.
Thanks for info but I am using an installer as shown below. The directories under /var/spool/qmailscan are owned by qscand.qscand but Sophie and ClamAV are still failing on what looks like a permissions problem.
I have reinstalled Qmail and Qmail Scanner (ST) from afresh and the temporary files under /var/spool/qmailscan/tmp are still owned by root so I guess this is how it works.
Strange thing is that spamd does not have any difficulty reading from the same directory but this is not running under perl. Could this be a suid problem on my machine which is causing Qmail Scanner to run as root and not qscand? I'm not too hot on perl so am guessing a bit here ...
Thanks again.
#!/bin/sh ./configure \ --domain hsvnet.demon.co.uk \ --admin av-admin \ --notify admin \ --scanners fast_spamassassin,sophie \ --local-domains hsvnet.demon.co.uk \ --log-details yes \ --redundant yes \ --run-first-p-s yes \ --debug yes \ --sa-quarantine 8.5 \ --sa-debug yes \ --minidebug yes \ --sa-alt yes \ --install
------------------------------------------------------- SF.Net is sponsored by: Speed Start Your Linux Apps Now. Build and deploy apps & Web services for Linux with a free DVD software kit from IBM. Click Now! http://ads.osdn.com/?ad_id=1356&alloc_id=3438&op=click _______________________________________________ Qmail-scanner-general mailing list [EMAIL PROTECTED] https://lists.sourceforge.net/lists/listinfo/qmail-scanner-general