Re: setuid

Steve Meyles and Heather Waddell (stevem3@uniserve.com)
Wed, 26 Mar 1997 19:04:07 -0800


H. Peter Anvin wrote:
>
> Followup to: <Pine.SUN.3.91.970320193248.23811A-100000@sparc1>
> By author: Helmut Riegler <helmut@sparc1.fast.co.at>
> In newsgroup: linux.dev.kernel
> >
> > There is no way to create setuid scripts. You have either to write C
> > wrapper (2-3 lines) and set the SUID bit for this program which calls
> > your script, or use sudo.
> >
>
> ... unless you program your scripts in perl (perl, unlike sh, handles
> setuid scripts properly.)
>
> Just make the #! line /usr/bin/suidperl instead of /usr/bin/perl.
>
> -hpa

or try suidcgi found at http://marion.uio.no/~sverrehu/pub-unix/

Steve Meyles