[Date Prev][Date Next] [Thread Prev][Thread Next] [Date Index] [Thread Index]

Re: Can shell-script be setuid ?



On Fri, Oct 06, 2000 at 12:22:49AM -0500, Brad wrote:

> > No.  Linux doesn't support this since it is insecure.  It works with perl
> > scripts only, because Perl does some extra checks and explicit handling to
> > make it work.
> 
> Also, doesn't perl use a special suid binary to run these scripts,
> because as far as the kernel is concerned it just hands it to
> /usr/bin/perl non-suid. Perl detects that the script is suid, and does
> the security handling and restarts suid with that binary.

    Man, I am a full-time perl coder and I didn't know that. I learn more
about this bloody language every day. ;-)

    Mike

-- 
Michael P. Soulier <msoulier@storm.ca>
"...the word HACK is used as a verb to indicate a massive amount
of nerd-like effort."  -Harley Hahn, A Student's Guide to UNIX



Reply to: