You are here: Home / Gentoo qmail-scanner perl suid

Gentoo qmail-scanner perl suid

Recent major update of Gentoo broke my qmail-scanner install, here's the fix...

Re-set suid for qmail-scanner-queue and qmail-scanner-queue.pl.

Edit /etc/make.conf and add in the USE line 'perlsuid'.

Then re-emerge perl.

This was necessary when getting errors such as:

X-Qmail-Scanner-2.05st:[servername130884356978526007] cannot open /var/spool/qscan/qmail-scanner-queue-version.txt - did you initialise the system by running "qmail-scanner-queue.pl -z"? - Permission denied

Or such as:

 /bin/rm: cannot remove `/var/spool/qscan/working/new/servername130879507278518094': Permission denied
@400000004e02a2a836017a44 X-Qmail-Scanner-2.05st:[servername130879555078518309] cannot open /var/spool/qscan/qmail-scanner-queue-version.txt - did you initialise the system by running "qmail-scanner-queue.pl -z"? - Permission denied
 

Or such as:

 @400000004e029e72045c43ac YOU HAVEN'T DISABLED SET-ID SCRIPTS IN THE KERNEL YET!
@400000004e029e72045c4b7c FIX YOUR KERNEL, PUT A C WRAPPER AROUND THIS SCRIPT, OR USE -u AND UNDUMP!

 

References:

http://qmail-scanner.sourceforge.net/FAQ.php

http://forums.gentoo.org/viewtopic-t-208091-start-0.html

Filed under:
Navigation