Once upon a time, Chris Adams <cmadams_at_hiwaay.net> said:
> I was trying to remove some old, unused packages on one Digital Unix
> 4.0F system here (I wanted to remove "IAFWTCPW340", which is "TCP
> Wrapper V7.6 Access control for Internet services"). I did "setld -d
> IAFWTCPW340". As it printed some messages, it included things like
> "awk: not found", "sed: not found", "basename: not found" that alarmed
> me a little bit. So when it finished, I did "ls /usr/bin" and got "ls:
> not found". For some reason, setld removed every file under /usr/bin!
Thanks for the fast responses. In answer to Larry Clegg and Jonathan
Williams, yes, I am pretty sure that setld did this. I did an "ls"
right before I did "setld" and it worked. And then setld did a little
bit and then it started giving errors, and then ls didn't work anymore.
Dr. Tom Blinn pointed out some possible errors in the package scripts.
This package did come from Digital (it has the Digital copyright and:
# *****************************************************************
# * This is the TCP Wraper System subset scp file for the
# * Internet AlphaServer Public Software
# *****************************************************************
at the top of the IAFWTCPW340.scp file). I checked the IAFWTCPW340.inv
file and it only lists files in ./usr/opt/IAFW340/TCPW. The only
suspicious thing in IAFWTCPW340.scp is:
# /usr/bin
for f in ${ROOTPATH}/usr/opt/${PCODE}${VERSION}/${MNEMONIC}/bin/*
do
FILE=${ROOTPATH}/usr/bin/`basename $f`
if [ -L $FILE ]
then
rm -f $FILE
fi
done
But that should only remove symbolic links, not every file in the
directory. Also, I don't _think_ there were any symlinks from /usr/bin
to /usr/opt/IAFW340/TCPW/bin (I was lookint at symlinks from /usr/bin to
/usr/opt just before I did this).
Well, I've kind of recovered; I'm just kind of worried about using
"setld" again after my first experience with it.
--
Chris Adams <cmadams_at_hiwaay.net>
Systems and Network Administrator - HiWAAY Internet Services
I don't speak for anybody but myself - that's enough trouble.
Received on Tue Dec 05 2000 - 17:18:27 NZDT