Just to add to the other comment. suidperl was only necessary on platforms where (secure) setuid scripts were not available so it is possible that you would have not needed it in the first place. If you do not have setuid scripts on your system then an alternative to suidperl (or indeed sudo ) would be to use a small C wrapper like:
#include <unistd.h> int main( int argc, char **argv) { execv("./foo.pl", argv); }
and make the executable setuid as appropriate. I would, however, be cautious using the above code lest you should unintentionally allow someone to run any program on the system as root: you would want to be absolutely sure that no-one would be able to replace the code of "foo.pl" with something unintended as the very first thing. You should also ensure that any program thus wrapped has taint mode on with the '-T' on the shebang line.
/J\

In reply to Re: Future security worries? by gellyfish
in thread Future security worries? by skx

Title:
Use:  <p> text here (a paragraph) </p>
and:  <code> code here </code>
to format your post, it's "PerlMonks-approved HTML":



  • Posts are HTML formatted. Put <p> </p> tags around your paragraphs. Put <code> </code> tags around your code and data!
  • Titles consisting of a single word are discouraged, and in most cases are disallowed outright.
  • Read Where should I post X? if you're not absolutely sure you're posting in the right place.
  • Please read these before you post! —
  • Posts may use any of the Perl Monks Approved HTML tags:
    a, abbr, b, big, blockquote, br, caption, center, col, colgroup, dd, del, details, div, dl, dt, em, font, h1, h2, h3, h4, h5, h6, hr, i, ins, li, ol, p, pre, readmore, small, span, spoiler, strike, strong, sub, summary, sup, table, tbody, td, tfoot, th, thead, tr, tt, u, ul, wbr
  • You may need to use entities for some characters, as follows. (Exception: Within code tags, you can put the characters literally.)
            For:     Use:
    & &amp;
    < &lt;
    > &gt;
    [ &#91;
    ] &#93;
  • Link using PerlMonks shortcuts! What shortcuts can I use for linking?
  • See Writeup Formatting Tips and other pages linked from there for more info.