View Full Version : slackware 9.1 - Qmail scanner config script error (setuid)
cooltool
04-25-2004, 09:08 AM
hi
i am just installing qmail via qmailrocks and am now at step 14. I am trying to install Qmail scanner, but after the 2nd "Y" (when configuring) it errors out with this error:
If that looks correct, I will now generate qmail-scanner-queue.pl
for your system...
Continue? ([Y]/N)
Testing suid nature of /usr/bin/perl...
Whoa - broken perl install found.
Cannot even run a simple script setuid
Installation of Qmail-Scanner FAILED
Error was:
Checking for setuid nature of perl install
What follows should be the UID of the qscand acount...
uid=1005
See FAQ for further details
---------------
I have a standard slackware 9.1 installation with perl in it.
What do i need to do to fix this?
Also i noticed there are 2 version of qmail scanner 1.21 and 1.22 .. the guide talks about using 1.21 .. but why is 1.22 there? i get the same error on both.
thanks ct.
bitmap
04-25-2004, 09:45 AM
For security problem Slackware don't have suidperl installed.
There are only two solution
1) Remove and recompile Perl with suidperl option activated (not so god idea)
2) Modify the configure script to bypass the suid check and use the C wrapper.
If you can wait Monday i can tell you the right modification to do.
cooltool
04-25-2004, 09:49 AM
thanks .. any help welcome.
not sure how i got around this the other times i installed qmail .. should really start taking notes.
might be a plan to include this in the qmailrocks guide, regarding this error should show up every time u install it with default slackware perl setup.
there is the config option for --skip-setuid-test should i use this?
bitmap
04-25-2004, 04:17 PM
I never saw this option, i thin is the right choice :-)
I think that a Slackware user is a bitter rough than other linux user.
On Slack all works very good, but with some more works than on other distros.
I like Slackware for this roughness, i can learn more doing by my hands.
Bookworm
04-25-2004, 04:22 PM
Actually, with a normal Slackware 9.1 install, it shouldn't say that suid is broken. I've done the install a dozen times or more (and I'll probably be doing it again this evening), to test the install script.
who are you running the compile as? If you are not running it as root, run it as root. That'll make it work enough to get to the next stages.
BW
cooltool
04-26-2004, 05:28 AM
yes i did it as root. strange that it happens. except running kernel 2.6.5 (which i maybe should have mentioned ;) and having all the slack patches installed i dont think i have any thing different. Is there some slack package i might have skiped during install that does this?
well i used the skip option now and it seems to do the trick.
except that when i do the test emails (where it sends the 4 emails) only 2 arrive. the other 2 are stuck in clamav quarentine, but I dont get any notification about them (eg. that a virus has been found.) any ideas on that? could that be because of the skip-.. option?
thanks ct.
Bookworm
04-26-2004, 02:11 PM
Did you do the rest, with the remove the taint?
The other thing you may have to do is run the qmail-queue option with -g AND -z
BW
cooltool
04-27-2004, 08:22 AM
ok think i got it to work now. i redid it a few times and also changed the option to inform the reciver of the virus email. and now i get all 4 emails and they are all taged as they should be.
I changed the Spam tag to **SPAM**, but how can i change that virus email gets taged differently?
now it looks like this:
Subject: virus found in received message "Qmail-Scanner viral te...
I like that to be **VIRUS** "old subject..."
but i cant find where i can set it.
cheers ct.
cooltool
04-27-2004, 03:44 PM
ok figured it out ..
dont actuly need it either, i think its not the best idea to send notifications on viruses regarding there are hardly never fals postives ..
got my setup more or less working. :)
thanks for the help.
vBulletin® v3.6.8, Copyright ©2000-2009, Jelsoft Enterprises Ltd.