tru64-unix-managers (formerly alpha-osf-managers) (1994-2012)
 help / color / mirror / Atom feed
From: "Jonathan Rozes" <jrozes () gumbo ! tcs ! tufts ! edu>
To: tru64-unix-managers
Subject: Can't get suidperl working
Date: Mon, 01 Jul 1996 16:33:40 +0000	[thread overview]
Message-ID: <96076335021195.tru64-unix-managers.marc@archive.invalid> (raw)

Hi folks--

In responding to the recently disclosed security bugs in suidperl, we applied
the given patches, only to find out that setuid perl scripts no longer work
on any of our Alphas :(

I preceded to get the perl-5.003 sources from CPAN and compiled them on
an OSF/1 3.0 system. I used pretty much all of the defaults for dec_osf
and selected 'yes' for setuid emulation. I now have a perl-5.003 installation
that won't execute any setuid perl code unless I invoke the script as root!

For example, given a setuid script:

#!/loc/lang/perl-5.003/bin/perl
umask 0077;
open(THING, ">/home/tcs/jrozes/thing.pid") || die "$!\n";
print THING "$$\n";
close THING;
exit 3;

This works fine when the script is non-setuid. Once I change the permissions
on the script though (to 4700, owned by me), it only works if I invoke it as
the root user. Invoking it as myself or any other non-priviledged user does
nothing; the script is not executed, and I just get another shell prompt
and an exit code of 0. I've tried this with other simple scripts (even just
a simple 'print "hello world"') and the same thing happens every time.

I repeated the above on a dUX 3.2d system with the same results.

[Note: this problem occurs with both our perl4 and perl5 interpreters.]

Any clues on how I can get a working suidperl would be greatly appreciated!

Thanks,
jonathan

-- 
+++ Jonathan Rozes, Unix Systems Administrator, Tufts University
++  jrozes@tcs.tufts.edu, http://rozes.tcs.tufts.edu/
+   Ultimately, thinking is a very inefficient method of processing
    data.... [Surfing the Himalayas, 0-312-14147-5]

                 reply	other threads:[~1996-07-01 16:33 UTC|newest]

Thread overview: [no followups] expand[flat|nested]  mbox.gz  Atom feed
read-only archive

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