The Unix Heritage Society mailing list
 help / color / mirror / Atom feed
* [TUHS] There is turmoil in Linux-land - When did rm first avoid going upwards?
@ 2017-04-24 22:06 Noel Chiappa
  2017-04-24 22:18 ` Josh Good
  0 siblings, 1 reply; 26+ messages in thread
From: Noel Chiappa @ 2017-04-24 22:06 UTC (permalink / raw)


    > From: Josh Good

    > Would the command "cd /tmp ; rm -rf .*" be able to kill a V6 ... system?

Looking at the vanilla 'rm' source for V6, it cannot/does not delete
directories; one has to use the special 'rmdir' command for that. But,
somewhat to my surprise, it does support both the '-r' and '-f' flags, which I
thought were later. (Although not as 'stacked' flags, so you'd have to say
'rm -r -f'.)

So, assuming one did that, _and_ (important caveat!) _performed that command
as root_, it probably would empty out the entire directory tree. (I checked,
and "cd /tmp ; echo .*" evaluates to ". .." on V6.

	Noel


^ permalink raw reply	[flat|nested] 26+ messages in thread
[parent not found: <mailman.805.1493129956.3779.tuhs@minnie.tuhs.org>]

end of thread, other threads:[~2017-04-28 14:48 UTC | newest]

Thread overview: 26+ messages (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2017-04-24 22:06 [TUHS] There is turmoil in Linux-land - When did rm first avoid going upwards? Noel Chiappa
2017-04-24 22:18 ` Josh Good
2017-04-24 23:23   ` Kurt H Maier
2017-04-24 23:59     ` [TUHS] was turmoil, moving to rm -rf / Larry McVoy
2017-04-25  0:44       ` Dan Cross
2017-04-25 14:02       ` Clem Cole
2017-04-25 14:08         ` Larry McVoy
2017-04-25 14:12           ` Álvaro Jurado
2017-04-25 14:29             ` arnold
2017-04-25 14:31               ` Álvaro Jurado
2017-04-25 16:28                 ` Pete Turnbull
2017-04-27 23:44                   ` Steve Johnson
2017-04-27 23:54                     ` Ron Natalie
2017-04-28  3:04                     ` Toby Thain
2017-04-28  5:19                       ` arnold
     [not found]                     ` <mailman.198.1493337336.3780.tuhs@minnie.tuhs.org>
2017-04-28 14:48                       ` John Floren
2017-04-25 14:18           ` Clem Cole
2017-04-25 15:28             ` Dan Cross
2017-04-25 17:56               ` Bakul Shah
2017-04-25 14:19         ` Corey Lindsly
2017-04-25  0:06     ` [TUHS] There is turmoil in Linux-land - When did rm first avoid going upwards? Ron Natalie
2017-04-25  0:18       ` Kurt H Maier
2017-04-25  0:22         ` ron minnich
2017-04-25  0:24           ` Kurt H Maier
2017-04-25  0:26             ` ron minnich
     [not found] <mailman.805.1493129956.3779.tuhs@minnie.tuhs.org>
2017-04-25 15:17 ` [TUHS] was turmoil, moving to rm -rf / David

This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for NNTP newsgroup(s).