tru64-unix-managers (formerly alpha-osf-managers) (1994-2012)
 help / color / mirror / Atom feed
* Summary: setld removed all files under /usr/bin!
@ 2000-12-05 17:16 Chris Adams
  0 siblings, 0 replies; only message in thread
From: Chris Adams @ 2000-12-05 17:16 UTC (permalink / raw)
  To: tru64-unix-managers

Once upon a time, Chris Adams <cmadams@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@hiwaay.net>
Systems and Network Administrator - HiWAAY Internet Services
I don't speak for anybody but myself - that's enough trouble.

^ permalink raw reply	[flat|nested] only message in thread

only message in thread, other threads:[~2000-12-05 17:16 UTC | newest]

Thread overview: (only message) (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2000-12-05 17:16 Summary: setld removed all files under /usr/bin! Chris Adams

This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox