*BSD News Article 99642


Return to BSD News archive

Path: euryale.cc.adfa.oz.au!newshost.carno.net.au!harbinger.cc.monash.edu.au!munnari.OZ.AU!news.ecn.uoknor.edu!news.wildstar.net!news.inetnebr.com!news.enteract.com!newsfeed.enteract.com!feed1.news.erols.com!howland.erols.net!rill.news.pipex.net!pipex!tank.news.pipex.net!pipex!news.utell.co.uk!shift.utell.net!nobody
From: brian@shift.utell.net (Brian Somers)
Newsgroups: comp.unix.bsd.freebsd.misc
Subject: Re: suid perl under freebsd won't work?
Date: Mon, 14 Jul 1997 18:03:08 +0100
Organization: Awfulhak Ltd.
Lines: 37
Message-ID: <c4mdq5.bhf.ln@shift.utell.net>
References: <33c91f70.2880009@netnews.hinet.net>
Reply-To: brian@awfulhak.org
NNTP-Posting-Host: shift.utell.net
Mime-Version: 1.0
Content-Type: text/plain; charset=us-ascii
X-Newsreader: knews 0.9.8
Xref: euryale.cc.adfa.oz.au comp.unix.bsd.freebsd.misc:44412


In article <33c91f70.2880009@netnews.hinet.net>,
	vcba79@ms1.hinet.net (Vincent Chen) writes:
> 
> Hi,
> 
>   I plan to let my user change their password via
> web access and start to write an experimental perl
> script. the script follows:
> 
> -rwsr-xr-x  1 root  wheel    87 Jul 14 02:38 dumppass.pl
> 
> #!/usr/local/bin/suidperl -U
> #
> 
> @ARGV='/etc/master.passwd';
> while(<>) {
>  print $_;
> };
> 
>   This script supposed to dump whole password file
> but it give me nothing. So I can't go further. Any 
> comment would be greatly appreciated.

Your perl installation is broken.  Try /usr/bin/suidperl instead.

> ---
> 
> Vincent Chen
> vcba79@ms1.hinet.net
> Taipei,Taiwan					
> R.O.C.
> 

-- 
Brian <brian@awfulhak.org> <brian@freebsd.org>
      <http://www.awfulhak.org>
Don't _EVER_ lose your sense of humour !