tru64-unix-managers (formerly alpha-osf-managers) (1994-2012)
 help / color / mirror / Atom feed
* perl suid scripts on DU?
@ 1998-06-03 19:36 Hugh Pritchard
  0 siblings, 0 replies; only message in thread
From: Hugh Pritchard @ 1998-06-03 19:36 UTC (permalink / raw)
  To: tru64-unix-managers

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@MCI.com
     metro Washington, DC

^ permalink raw reply	[flat|nested] only message in thread

only message in thread, other threads:[~1998-06-03 19:36 UTC | newest]

Thread overview: (only message) (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
1998-06-03 19:36 perl suid scripts on DU? Hugh Pritchard

This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox