[Sorry, it seems that I overlooked this message -- alex]
Hi,
Since nvi is hard to come by, here is a little program to mimic the behavior
of nvi on any file you care to try...
usage: locklogin file_to_lock
It first tries POSIX locking and then does BSD flavor. It seems that it is
BSD after all that is causing the trouble...
Best wishes
Andrew
#!/bin/csh -f
# Uuencoded gz-compressed file created by csh script uufiles
# For more info (11/95), see e.g. xxx.lanl.gov/faq/uufaq.html
# If you are on a unix machine this file will unpack itself: strip
# any mail header and call resulting file, e.g., locklogin.uu
# (uudecode ignores these header lines and starts at begin line below)
# Then say csh locklogin.uu
# or explicitly execute the commands (generally more secure):
# uudecode locklogin.uu ; gunzip locklogin.c.gz ;
# On some non-unix (e.g. VAX/VMS), first use editor to change filename
# in "begin" line below to locklogin.c-gz , then execute
# uudecode locklogin.uu
# gzip -d locklogin.c-gz
#
uudecode $0
chmod 644 locklogin.c.gz
gunzip locklogin.c.gz
rm $0
exit
begin 644 locklogin.c.gz
M''XL(`#[!FS("`\U274_",!1]9K_B"M%T,''''HFX`/`B8&(@9,P*A9YM9"8]<M
M:T=$LO]NV_$1"/+L''KKVGG///?>V%<H#EH486D*&-*[/[ZS*+K045X0RO!_-
M.%7<_1@)N&0Z9$4^Y8AR"7XZ"QP(YGX*U:HZ+&QK98''Z-$C"YG9/BZV0:18H
MA,7!%\@H*:(%BP#2<G#6AFL;5E:))*E*)4@9P6GJE#/AS_`MG`L@&6.>-NUQ
M/\+OO.QH)XLW]\-N6B7\326Z;-B%>&[60ZTXP9SR&6@10&EL*]F=3D/K%''DA
MM$&3T1IP8.B-NL.GP>M:7_O6M!:X<-2VS@;BJT*AJK`UN/-G?A&.!);H0@W%
M`=<!07]P3)`ZVFNBVM:9)Y<)5I8>O,EHT.EO7!Z4?!Z.''Z>@AXQLW265]7IY
MSZ^^2D1"1PF->R^#_L0!7=K^NXVB@XU*#I@);''AQ"HBVW2;0UHU::S5J\H_Y
M,B8,(AC&B9E!*3]Q3<7`CD+WX^[)#@VF.QP,.WVO-_V?K6V?_R''\N<0[AGDP
-KCKDUB\"@@\%S`,`````
`
end
--
Linux-PAM: parc.power.net/morgan/Linux-PAM/index.html
libpwdb: parc.power.net/morgan/libpwdb/index.html