I replaced my 'qmail-scanner.pl' as mentioned in post
http://sourceforge.net/mailarchive/forum.php?thread_id=3462292&forum_id=4330
I must have missed something because I am having permission problems. Help
me see what I missed.

This is the error I see in the logs.

X-Qmail-Scanner-1.20:[] cannot create /var/spool/qmailscan/tmp - Permission
denied

Setup: OpenBSD 3.2,Q-S1.20st, clamav.54, SA-2.55,C-wrapper

Steps Taken:
1. Patched Q-S 1.20 with q-s-1.20st-20031222.patch
2. Configured with the following:
        ./configure --admin admin --domain cornerstonens.com --notify
nmladm --local-domains
cornerstonens.com,world2one.com,i-dex.com,shaunti.com --log-details
yes --qs-user qmailq --qs-group qmail --sa-quarantine  6.5 --sa-delete
10.1 --sa-reject yes

Well, it would be a lot of easier to install q-s-1.20st-20031222.tgz directly ,just add --install


./configure --admin admin --domain cornerstonens.com --notify
nmladm --local-domains
cornerstonens.com,world2one.com,i-dex.com,shaunti.com --log-details
yes --qs-user qmailq --qs-group qmail --sa-quarantine  6.5 --sa-delete
10.1 --sa-reject yes --install

In this way the configure script sets everything in /var/spool/qmailscan


3. Renamed old qmail-scanner-queue.pl
4. Copied the new qmail-scanner-queue.pl  to /var/qmail/bin and CHMOD'd the
new file to match the old. I also made sure suidperl is not being called
since I am using the Cwrapper.
5. Restarted Qmail
6. Ran /var/qmail/bin/qmail-scanner-queue.pl -g as root and qmailq
7. I changed the permissions trying world-writable on /var/spool/qmailscan
and /var/spool/qmailscan/tmp. It did not make a difference.
8. Rolled Back to Q-S 1.16 successfully.

Results of some of the steps:
drwxrwx---  4 qmailq  qmail   512 Dec 23 18:39 qmailscan
drwxrwx---  2 qmailq  qmail        512 Dec 23 18:43 tmp
-rwxrwx---  1 qmailq  qmail     482099 Dec 23 18:35 qmail-queue.log
drwxrwx---  5 qmailq  qmail        512 Jul 15 09:28 quarantine
-rw-r-----  1 root    qmail      32768 Dec 23 18:37
quarantine-attachments.db
-rwxrwx---  1 qmailq  qmail       4325 Dec 23 17:08
quarantine-attachments.txt


AS Root: /var/qmail/bin/qmail-scanner-queue.pl -g perlscanner: generate new DB file from /var/spool/qmailscan/quarantine-attachments.txt perlscanner: total of 17 entries.

As qmailq:
 su qmailq
% /var/qmail/bin/qmail-scanner-queue.pl -g
perlscanner: generate new DB file from
/var/spool/qmailscan/quarantine-attachments.txt
perlscanner: total of 17 entries.

You mustn't can do 'su qmailq', you're still root, qmailq doesn't use to have a shell... So you have permission problems


Your directory would be like this

# ll /var/spool/qmailscan/
total 1632
-rw------- 1 qmailq qmail 35109 Dec 24 10:14 qmail-queue.log
-rw------- 1 qmailq qmail 15106 Dec 21 04:02 qmail-queue.log.1.gz
-rw------- 1 qmailq qmail 10412 Dec 14 04:02 qmail-queue.log.2.gz
-rw------- 1 qmailq qmail 169646 Dec 7 04:02 qmail-queue.log.3.gz
-rw------- 1 qmailq qmail 174937 Nov 30 04:02 qmail-queue.log.4.gz
-rw------- 1 qmailq root 44 Dec 24 10:14 qmail-scanner-queue-version.txt
drwxrwx--- 5 qmailq qmail 4096 Jun 28 11:41 quarantine
-rw-r----- 1 qmailq root 12288 Dec 24 10:14 quarantine-attachments.db
-rw-r--r-- 1 qmailq qmail 6397 Nov 14 09:08 quarantine-attachments.txt
-rw-rw---- 1 qmailq qmail 2218 Dec 24 10:14 quarantine.log
-rw-rw---- 1 qmailq qmail 1405 Dec 21 04:02 quarantine.log.1
-rw-rw---- 1 qmailq qmail 3321 Dec 14 04:02 quarantine.log.2
-rw-rw---- 1 qmailq qmail 5368 Dec 7 04:02 quarantine.log.3
-rw-rw---- 1 qmailq qmail 4658 Nov 30 04:02 quarantine.log.4
drwx------ 2 qmailq qmail 4096 Dec 24 09:36 tmp
lrwxrwxrwx 1 qmailq qmail 31 Dec 24 10:14 viruses -> /var/spool/qmailscan/quarantine
lrwxrwxrwx 1 qmailq qmail 35 Dec 24 10:14 viruses.log -> /var/spool/qmailscan/quarantine.log
drwxrwx--- 5 qmailq qmail 4096 Jun 28 11:41 working


Cheers

Salvatore


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