Xref: utzoo unix-pc.general:291 comp.sys.att:2406 Path: utzoo!utgpu!water!watmath!clyde!mtune!icus!lenny From: lenny@icus.UUCP (Lenny Tropiano) Newsgroups: unix-pc.general,comp.sys.att Subject: strip(1) removes files protected on UNIX PC. Keywords: strip, cc, ld, chmod Message-ID: <245@icus.UUCP> Date: 6 Feb 88 03:07:19 GMT Organization: ICUS Computer Group, Islip, NY Lines: 40 I recently was compiling Nethack 2.2 on my UNIX PC and I noticed something strange... Basically the senario was; $ cd Nethack $ su Password: # nohup make & Sending output to nohup.out. # $ [...wait for about 1 hour...] [...Everything compiled normally and I had a nethack executable...] $ $ rm -f *.o [...Then I did...] $ strip nethack strip: nethack: cannot write, cannot strip So I assume that the permissions were so that I couldn't write it, of course they were since I was root when I started the compile. But to my suprise strip was very destructive. It removed the executable, because it wasn't owned by me and had a 644 permission. Of course I was a little peturbed since I prematurely removed all the objects (*.o). Oh well. The moral of the story, don't clean up your directories until you "strip" your executable :-) -Lenny -- ============================ US MAIL: Lenny Tropiano, ICUS Computer Group IIIII CCC U U SSSS PO Box 1 I C C U U S Islip Terrace, New York 11752 I C U U SSS PHONE: (516) 968-8576 [H] (516) 582-5525 [W] I C C U U S AT&T MAIL: ...attmail!icus!lenny TELEX: 154232428 IIIII CCC UUU SSSS UUCP: ============================ ...{uunet!godfre, harvard!talcott}!\ ...{ihnp4, boulder, mtune, bc-cis, ptsfa, sbcs}! >icus!lenny "Usenet the final frontier" ...{cmcl2!phri, hoptoad}!dasys1!/