Relay-Version: version B 2.10 5/3/83; site utzoo.UUCP Path: utzoo!decvax!ucbvax!ucbcad!nike!lll-crg!seismo!gatech!cuae2!usenet From: neild@ux.cs.man.ac.uk Newsgroups: mod.os.unix Subject: protection from rm -r * Message-ID: <2822@cuae2.UUCP> Date: Tue, 14-Oct-86 11:47:05 EDT Article-I.D.: cuae2.2822 Posted: Tue Oct 14 11:47:05 1986 Date-Received: Thu, 16-Oct-86 07:18:45 EDT Sender: usenet@cuae2.UUCP Lines: 40 Keywords: rm, unlink Approved: usenet@cuae2.UUCP I would like to hear from anybody who has suggestions on, or knows of implementations of, methods for reducing the consequences of commands like "rm -r *". Particularly when accidently invoked by the super-user in the wrong directory, e.g. "/"! Such methods must be as transparent as possible with regard to the normal usage of "rm". In particular, I am interested in :- 1) A method for protecting files/directories that should not be unlinked/truncated while still allowing their contents to be modified. Making the parent directory non-writable is insufficient as it prevents other files from being created or removed. Further, the super-user should not be able to unlink/truncate protected files without explicitly, and separately, removing said protection first. 2) A method of retaining and reincarnating the pathname and contents of files that have been unlinked/truncated. The retention time of such files should be long enough for a user who has accidently clobbered a file to: realise what they have done, find out how to reincarnate a file and do/request it. Recovery from archives is impractical because they cannot be created often enough without consuming excessive amounts of cpu time and disk space. Please send replies by mail using the addresses below. If requested and if I have time I will post the best suggestions to the net or to those who request them. [Neil, maybe you'd send a summary to mod.os.unix??? -ed] Thanks in advance *=============================================================================* * R Neil Dyer, | * * Dept of Computer Science, | Tel: (+44) 61 273 7121 Ext 5018 * * The University of Manchester, | JANET: neild@uk.ac.man.cs.ux * * Oxford Road, Manchester | UUCP: mcvax!ukc!man.cs.ux!neild * * M13 9PL, | ARPA: neild%uk.ac.man.cs.ux@cs.ucl.ac.uk * * UNITED KINGDOM. | * *=============================================================================*