Okay -- I tried deleting the quarantine-attachments.db file, and then executing qmail-scanner-queue.pl as qscand using setuidgid:

[EMAIL PROTECTED] qmailscan]# rm quarantine-attachments.db
rm: remove regular file `quarantine-attachments.db'? yes
[EMAIL PROTECTED] qmailscan]# setuidgid qscand /var/qmail/bin/qmail-scanner-queue.pl -g
perlscanner: generate new DB file from /var/spool/qmailscan/quarantine-attachments.txt
perlscanner: total of 9 entries.
[EMAIL PROTECTED] qmailscan]# ls -li
total 40
400891 -rw------- 1 root root 720 Dec 17 20:32 qmail-queue.log
400892 -rw------- 1 root root 38 Dec 17 20:32 qmail-scanner-queue-version.txt
400885 drwxrwx--- 5 qscand qscand 4096 Dec 17 20:32 quarantine
400890 -rw-r----- 1 qscand qscand 12288 Dec 18 07:39 quarantine-attachments.db
400889 -rw-rw---- 1 qscand qscand 4279 Dec 17 20:32 quarantine-attachments.txt
400887 -rw-rw---- 1 qscand qscand 0 Dec 17 20:32 quarantine.log
112310 drwx------ 2 root root 4096 Dec 17 20:32 tmp
400884 lrwxrwxrwx 1 qscand qscand 31 Dec 17 20:32 viruses -> /var/spool/qmailscan/quarantine
400888 lrwxrwxrwx 1 qscand qscand 35 Dec 17 20:32 viruses.log -> /var/spool/qmailscan/quarantine.log
304694 drwxrwx--- 5 qscand qscand 4096 Dec 17 20:32 working
[EMAIL PROTECTED] qmailscan]#


I really don't think those 'permission denied' errors are because setuid isn't working. There must be something else happening.

-Stephen-



-------------------------------------------------------
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