Return to BSD News archive
Path: euryale.cc.adfa.oz.au!newshost.carno.net.au!harbinger.cc.monash.edu.au!nntp.coast.net!fu-berlin.de!main.Germany.EU.net!ieunet!web3.tcd.ie!maths.tcd.ie!not-for-mail From: dwmalone@maths.tcd.ie (David Malone) Newsgroups: comp.lang.perl.misc,comp.unix.bsd.freebsd.misc Subject: Re: 'vipw' Style File Locking in Perl Date: 11 Aug 1996 17:08:37 +0100 Organization: Dept. of Maths, Trinity College, Dublin, Ireland. Lines: 17 Message-ID: <4ul0i5$4a6@synge.maths.tcd.ie> References: <320DE5D9.3FF1@tassie.net.au> NNTP-Posting-Host: synge.maths.tcd.ie Xref: euryale.cc.adfa.oz.au comp.lang.perl.misc:36105 comp.unix.bsd.freebsd.misc:25313 Brook Schofield <Brook@tassie.net.au> writes: >I am trying to write a change password script in perl that is accessed >though a Web Browser, using Apache and FreeBSD 2.0.5. >I have tried using 'chpass' in FreeBSD but it doesn't seem accessable >in Perl, unless I run as root. Not even SUID CGI's will work with this >one. >So I am wondering if anyone has a script out there that can implement >file locking in the same way that 'vipw' does. Try writing your script to accept the filename to edit, then do a setenv EDITOR myscript.pl ; vipw David.