Greetings wise monks, I have a very frustrating issue. I am upgrading my mail server from Redhat 6.2 to Redhat 9. I have some old legacy perl scripts that do some pretty invaluable functions that I would like to retain, the problem however is that no matter how hard I try, these scripts will not suid.

This is the info:

bash-2.05b$ ls -la create

-rwsr-xr-x 1 root root 1176 Jun 16 21:13 create

~~ permissions seem correct!

bash-2.05b$ whoami

nobody

~~ shouldnt be a problem, right?

bash-2.05b$ ./create

Can't do setuid

~~ it says in the perldoc that if you get this error that /usr/bin/suidperl doesnt exist.

bash-2.05b$ ls -la /usr/bin/suidperl

-rwsr-sr-x 2 root root 531516 Jun 16 20:37 /usr/bin/suidperl

~ouch.

I have to say Im kind of clueless at this point, this is how I am calling the script

#! /usr/bin/suidperl, I have also tried #! /usr/bin/suidperl -T, #! /usr/bin/perl -T, #! /usr/bin/suidperl -TU, et cetera.

This just isnt working. Redhat 9 has a RPM file for suidperl, so I imagine at some point they intended it to be possible to do this.

By the way, the script works excellent if i run it as root. Thanks, -Drew


In reply to suidperl /w redhat 9 by badmrfrosty

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.