Re: [Speedycgi-users] speedy and setuid scripts
Brought to you by:
samh
|
From: Sam H. <sa...@da...> - 2002-07-08 14:53:54
|
There is some poorly documented support for setuid scripts in the existing
release. It only works on some OSes though (freebsd/linux - not solaris).
To use it you first install a setuid-root "/usr/bin/speedy_suid",
change your #! line to use that, and then make your perl script
setuid to qmailq.
Here are the instructions for installing it (this should be documented - I'll
put that on the todo list for the 2.20 release).
To install the setuid speedy do the following:
- Run "perl Makefile.PL"
- Edit speedy/Makefile and add "-DIAMSUID" to the end of the "DEFINE = "
line.
- Run make
- Take the resulting "speedy" binary and install it suid-root as
/usr/bin/speedy_suid
- Change your setuid scripts to use /usr/bin/speedy_suid as the
interpreter.
> Hi,
>
> I recently tried to use speedy to speed up qmail-scanner, a server-side
> email scanner for qmail. It works as a drop-in replacemanet fur
> qmail-queue, which is a setuid (qmailq/qmail) binary.
> How could speedy handle setuid? A possible solution would be to arrange
> for an suid root speedy_backend like suidperl. We could then support
> somethoing like a run_as($user) CGI::SpeedyCGI, or another commandline
> switch to the speedy frontend.
>
> regards,
> Lars
>
>
>
> -------------------------------------------------------
> This sf.net email is sponsored by:ThinkGeek
> Oh, it's good to be a geek.
> http://thinkgeek.com/sf
> _______________________________________________
> Speedycgi-users mailing list
> Spe...@li...
> https://lists.sourceforge.net/lists/listinfo/speedycgi-users
|