Page 1 of 1

qmail-scanner "Can't do setuid (cannot exec sperl)"

Posted: Fri May 09, 2008 11:49 am
by faris
Ok, this is interesting.

I've just created a new VPS (Centos 4) and went about installing qmail-scanner/dcc/spamassassin/pyzor/razor/etc as usual from the atomic repo.

********
Installed: clamd.i386 0:0.92.1-1.el4.art dcc.i386 0:1.3.82-1.el4.art pyzor.noarch 0:0.4.0-11.el4.art razor-agents.i386 0:2.84-1.el4.art spamassassin.i386 1:3.2.4-1.el4.art
Dependency Installed: clamav.i386 0:0.92.1-1.el4.art clamav-db.i386 0:0.92.1-1.el4.art
Complete!
********

But when it came to installing qmail-scanner, to my surprise I got this:

*************
Running Transaction
Installing: qmail-scanner ######################### [1/1]
Can't do setuid (cannot exec sperl)
Can't do setuid (cannot exec sperl)

Installed: qmail-scanner.noarch 1:2.02-1.el4.art
Complete!
**************

Basically the sperl issue happens when qmail-scanner-reconfigure gets run

perl-suidperl is installed and I've tried symlinking the versioned file to a non-versioned file (sperl to sperl8.8.5)

But no matter what I do, I keep getting this error.

It isn't selinux. This is a Virtuozzo VPS, and selinux doesn't work in them. It is disabled in the config file anyway.

The only difference between this VPS and any other one I've set up is the fact that this one has Plesk 8.4.0 in it. But I can't see how that would cause problems with qmail-scanner-reconfigure

Any ideas anybody?

Faris.

Posted: Fri May 09, 2008 12:08 pm
by faris
Aha! Problem solved.

It was the version of perl-suidperl that was different.

On this particular VPS I had not enabled the centosplus repo, which has more up to date versions of Perl and perl-suidperl

With that repo enabled, and updating those (perl-Apache-ASP had to be removed first -- no loss!!!), all was well.

Faris.