Path: utzoo!attcan!uunet!decwrl!sdd.hp.com!hp-pcd!hpcvmcdj!carlj From: carlj@hpcvmcdj.cv.hp.com (Carl Johnson) Newsgroups: comp.unix.misc Subject: Re: Protection from "rm *" Message-ID: <22360001@hpcvmcdj.cv.hp.com> Date: 8 Oct 90 15:56:41 GMT References: <853@agcsun.UUCP> Organization: HP Corvallis, Oregon Lines: 23 In comp.unix.misc, davidsen@sixhub.UUCP (Wm E. Davidsen Jr) writes: This discussion went by once before... the "#" file trick with funny permissions doesn't work as well as creating a files called -i (touch ./-i). The reason is that even if you type "rm -f *", which bypasses the asking on the readonly file, the filename -i at the start will force interractive mode, you can look at the prompt and test your favorite expletive, then abort. If you ever really want to blow everything away you can "rm -f ./*". -- bill davidsen - davidsen@sixhub.uucp (uunet!crdgw1!sixhub!davidsen) sysop *IX BBS and Public Access UNIX moderator of comp.binaries.ibm.pc and 80386 mailing list "Stupidity, like virtue, is its own reward" -me This doesn't work on all systems either (does anything?). I just created a directory then created a couple files plus a '-i' file. When I did a 'rm -f' there was no questions about deleting files, and an ls showed only '-i' left. An 'rm -f' also deletes any file named '#' even if it doesn't have write permissions. I am using HP/UX which is mostly Sytem 5 externally. Carl Johnson carlj@hpcvmcdj.cv.hp.com