*BSD News Article 74945


Return to BSD News archive

Path: euryale.cc.adfa.oz.au!newshost.anu.edu.au!harbinger.cc.monash.edu.au!news.mira.net.au!news.mel.connect.com.au!munnari.OZ.AU!spool.mu.edu!agate!howland.reston.ans.net!Germany.EU.net!Dortmund.Germany.EU.net!interface-business.de!usenet
From: j@ida.interface-business.de (J Wunsch)
Newsgroups: comp.unix.amiga,comp.unix.bsd.netbsd.misc
Subject: Re: NetBSD PERL Setuid problem
Date: 29 Jul 1996 13:07:16 GMT
Organization: interface business GmbH, Dresden
Lines: 19
Message-ID: <4tid24$4qo@innocence.interface-business.de>
References: <31F7FAA2.7341@cqc.com>
Reply-To: joerg_wunsch@interface-business.de (Joerg Wunsch)
NNTP-Posting-Host: ida.interface-business.de
X-Newsreader: knews 0.9.6
X-Phone: +49-351-31809-14
X-Fax: +49-351-3361187
X-PGP-Fingerprint: DC 47 E6 E4 FF A6 E9 8F  93 21 E0 7D F9 12 D6 4E
Xref: euryale.cc.adfa.oz.au comp.unix.amiga:13613 comp.unix.bsd.netbsd.misc:4191

Dana Canfield <dcanfiel@cqc.com> wrote:

> I've been trying to get some setuid perl scripts to run, and have had no
> luck.  I've asked some of the best NetBSD experts I know, and they don't
> know how to do it either.  So, could somebody please explain to me
> exactly how I can make a perl script switch to root?

#!/usr/local/bin/suidperl

system "id";


NB: Watch the recent CERT advisory about suidperl.  I have no idea how
the default set*id() functionality is arranged in the NetBSD port.

-- 
J"org Wunsch					       Unix support engineer
joerg_wunsch@interface-business.de       http://www.interface-business.de/~j