*BSD News Article 99696


Return to BSD News archive

Path: euryale.cc.adfa.oz.au!newshost.carno.net.au!harbinger.cc.monash.edu.au!news.cs.su.oz.au!inferno.mpx.com.au!news.ci.com.au!brian.telstra.net!news.telstra.net!nsw.news.telstra.net!news.syd.connect.com.au!phaedrus.kralizec.net.au!news.mel.aone.net.au!news.mira.net.au!inquo!hookup!usc!howland.erols.net!spring.edu.tw!serv.hinet.net!netnews.hinet.net!news
From: vcba79@ms1.hinet.net (Vincent Chen)
Newsgroups: comp.unix.bsd.freebsd.misc
Subject: Re: suid perl under freebsd won't work?
Date: Tue, 15 Jul 1997 13:34:16 GMT
Organization: Vincent Research
Lines: 35
Message-ID: <33cb7aad.1227061@netnews.hinet.net>
References: <33c91f70.2880009@netnews.hinet.net> <c4mdq5.bhf.ln@shift.utell.net>
NNTP-Posting-Host: h174.s82.ts.hinet.net
X-Newsreader: Forte Free Agent 1.11/32.235
Xref: euryale.cc.adfa.oz.au comp.unix.bsd.freebsd.misc:44460

>>   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.

/usr/bin/suidperl works. My /usr/local/bin/perl came from 
package 2.2.2 collection (perl-5.003). Does it means that
I didn't install it properly or perl package has problem? Is
it possible to fix it. I need some features in perl 5.003.




---

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