Thanks for your help Tom, but no joy yet. 

> 
> A couple of tests:
> (quick and dirty):
> $ chmod 666 /var/spool/qmailscan/quarantine-attachments.db 
> 
> Then run and look at the log again. 
> 
> (more complicated):
> around line 998 of q-s.pl add:
>  my ($idd);
>  $idd=`id -a`;
>  &debug("ID is: $idd\n"); 
> 

Here are the permissions (I went back to owner qscand)
[EMAIL PROTECTED] qmailscan]# ll quarantine-attachments.*
-rw-rw-rw-    1 qscand   nofiles     12288 Dec 18 10:33
quarantine-attachments.db
-rw-rw----    1 qscand   qscand       4361 Dec 17 14:28
quarantine-attachments.txt

Here's what the log shows now: (last few lines before the failure)

Thu, 18 Dec 2003 18:16:47 +0200:7566: p_s: starting scan of directory
"/var/spool/qmailscan/tmp/ns.arava.co.il10717642074617566"...
Thu, 18 Dec 2003 18:16:47 +0200:7566: ID is: uid=7806(qscand)
gid=2108(nofiles) groups=2108(nofiles)
18/12/2003 18:16:47:7566: error_condition: X-Qmail-Scanner-1.20: cannot open
/var/spool/qmailscan/quarantine-attachments - No such file or directory

So q-s.pl is running as qscand user. That user owns the qmailscan directory
and the quarantine-attachments file, but it still can't find it!


-------------------------------------------------------
This SF.net email is sponsored by: IBM Linux Tutorials.
Become an expert in LINUX or just sharpen your skills.  Sign up for IBM's
Free Linux Tutorials.  Learn everything from the bash shell to sys admin.
Click now! http://ads.osdn.com/?ad_id=1278&alloc_id=3371&op=click
_______________________________________________
Qmail-scanner-general mailing list
[EMAIL PROTECTED]
https://lists.sourceforge.net/lists/listinfo/qmail-scanner-general

Reply via email to