perl suid scripts on DU?

From: Hugh Pritchard <Hugh.Pritchard_at_MCI.com>
Date: Wed, 03 Jun 1998 15:36 -0400 (EDT)

Rumor and the alpha-osf-managers archives have it that DU won't allow
scripts (versus compiled programs) to run suid. I've been trying to find
out how to set up a perl script to run suid, in addition to doing the
chown root and chmod u+s commands.

There is one example in the perlipc man page, the same example as in the
O'Reilly _Programming_Perl_ book:

        ( $EUID, $EGID ) = ( $UID, $GID );

This seems under-commented. There is also mention in the perlsec man
page of suidperl; but nothing more is said about this.

I know I can

    a) re-install perl with the suid-emulation stuff turned on (I didn't
       install it originally), or
    b) write a quickie C program to setuid(0) and system(perl script)
       (or maybe exec?).

Has anyone actually written and run a perl script suid? How did you do
it?

     Hugh
     Hugh Pritchard, M.Sc.
     Mailto: Hugh.Pritchard_at_MCI.com
     metro Washington, DC
Received on Wed Jun 03 1998 - 21:38:20 NZST

This archive was generated by hypermail 2.4.0 : Wed Nov 08 2023 - 11:53:37 NZDT