Dungeon666 has asked for the wisdom of the Perl Monks concerning the following question:

I am trying to setup openwebmail on fedora core 3. I have apache running and sendmail works. I don't know how to compile perl with suid support so i just installed perlsuid rpm. But when i try to access openwebmail from the web i get can't set suid in the http error_log. So i am assuming my problem lies somehow with suid perl. Can anyone help me?

Replies are listed 'Best First'.
Re: Need help with suid perl
by Zaxo (Archbishop) on Nov 18, 2004 at 14:13 UTC

    It will be better to have apache httpd handle the setuid part. Set up httpd to use the suEXEC feature for cgi.

    Unfortunately, suEXEC is not compatible with mod_perl, except in highly experimental state.

    After Compline,
    Zaxo

Re: Need help with suid perl
by hmerrill (Friar) on Nov 18, 2004 at 12:57 UTC
    Let me get this straight - you want "openwebmail" to run from the webserver *as* a user other than the webserver default user "nobody" - is that right?? What user do you want "openwebmail" to run as?

    I'm asking because I'm familiar with the apache "suexec" wrapper which allows the webserver to run scripts *as* the owner of those scripts (instead of as the webserver default "nobody" user). Does this sound like what you're looking for?

      Openwebmail is a mail server that runs from the web. It requires suidperl. I have installed the suidperl rpm and suid shows up in /usr/bin but if try to access openwebmail from the web i get internal server error. Inside the http access_error logs it says can't set suid. Is this not a perl problem? If there is something in apache that i am forgetting to enable or configure can you explain where to look to how to do that?
        I'm not familiar with Openwebmail nor with suidperl. If I were you I would join the fedora-list mailing list, and/or join the #fedora IRC chat on freenode.net and ask your questions there. Good luck - sorry I can't be more help.