From owner-freebsd-security Tue Aug 31 18:52:21 1999 Delivered-To: freebsd-security@freebsd.org Received: from foobar.franken.de (foobar.franken.de [194.94.249.81]) by hub.freebsd.org (Postfix) with ESMTP id 411A014E4E for ; Tue, 31 Aug 1999 18:52:14 -0700 (PDT) (envelope-from logix@foobar.franken.de) Received: (from logix@localhost) by foobar.franken.de (8.8.8/8.8.5) id DAA18081; Wed, 1 Sep 1999 03:49:55 +0200 (CEST) Message-ID: <19990901034954.A18062@foobar.franken.de> Date: Wed, 1 Sep 1999 03:49:54 +0200 From: Harold Gutch To: Markus Holmberg , freebsd-security@FreeBSD.ORG Subject: Re: how to remove directories made by the core-following-symlink test code? References: <19990901032316.A8300@montezuma.acc.umu.se> Mime-Version: 1.0 Content-Type: text/plain; charset=us-ascii X-Mailer: Mutt 0.93.2i In-Reply-To: <19990901032316.A8300@montezuma.acc.umu.se>; from Markus Holmberg on Wed, Sep 01, 1999 at 03:23:16AM +0200 Sender: owner-freebsd-security@FreeBSD.ORG Precedence: bulk X-Loop: FreeBSD.org On Wed, Sep 01, 1999 at 03:23:16AM +0200, Markus Holmberg wrote: > Wanted to test if the 2.2.8-STABLE production box here was vulnerable, so I > compiled and executed with the deep dir structure as a result.. > > Am I missing something very trivial here, or how am I supposed to do to > remove the very deep directory structure that was made by the > core-follow-symlink test/exploit/whatever code? > > A normal "rm -rf " won't do it.. > I had the same problem - my (quick) solution was something like while (true) do mv * a && cd a done which would rename every directory to "a" (as every directory contains only a single subdirectory), which then could be removed with "rm -rf ". bye, Harold -- Sleep is an abstinence syndrome wich occurs due to lack of caffein. Wed Mar 4 04:53:33 CET 1998 #unix, ircnet To Unsubscribe: send mail to majordomo@FreeBSD.org with "unsubscribe freebsd-security" in the body of the message