SUID

I've run into a problem that I don't know how to fix. I'm running
OpenWebMail from Apache2 as a perl cgi script on Debian Sarge. It's
running on a very old 166 MHz PC, so I wanted to speed things up using
persistant Perl, so I installed speedy-cgi-perl.

In the main OpenWebMail script, I replaced the

#!/usr/bin/perl

with

#!/usr/bin/speedy

It didn't work, so I changed back to the original, made no other changes.

I thought that everything would work as before, but now the script returns
an error "must setuid to root".

Either installing speedy-cgi-perl or running speedy from the script has
changed something, but I don't know what or how to fix it. I don't think
installing speedy caused the problem, because OpenWebMail was still
working after I installed speedy but before I changed the script.

I'm not very clear on the details of how suid works with perl and can't
see where the problem is. I've restarted Apache, removed speed-cgi-perl,
rebooted the system, but the problem remains. Any help would be
appreciated.

Thanks

Dan
Dan N [ Di, 31 Januar 2006 07:25 ] [ ID #1166606 ]

Re: SUID

"Dan N" <dan [at] localhost.localdomain> wrote in message
news:pan.2005.10.07.10.26.39.663608 [at] localhost.localdomain...
>
> I've run into a problem that I don't know how to fix. I'm running
> OpenWebMail from Apache2 as a perl cgi script on Debian Sarge. It's
> running on a very old 166 MHz PC, so I wanted to speed things up using
> persistant Perl, so I installed speedy-cgi-perl.
>

Have you tried the maintainer of the package?

http://packages.qa.debian.org/s/speedy-cgi-perl.html

Matt
Matt Garrish [ Di, 31 Januar 2006 23:52 ] [ ID #1166607 ]
Perl » alt.perl » SUID

Vorheriges Thema: basic question help with strings
Nächstes Thema: Exported constants in module (HELP WITH)