Skip site navigation (1)Skip section navigation (2)
Date:      Fri, 21 Feb 1997 22:39:00 -0600 (CST)
From:      Wm Brian McCane <root@bmccane.uit.net>
To:        David Stickney <david@wvb.gomel.by>
Cc:        "'FBSD ISP'" <freebsd-isp@freebsd.org>
Subject:   Re: Big Directories..
Message-ID:  <Pine.BSF.3.91.970221223450.3400A-100000@bmccane.uit.net>
In-Reply-To: <01BC2023.E0990480@david>

next in thread | previous in thread | raw e-mail | index | archive | help

On Fri, 21 Feb 1997, David Stickney wrote:

> I some questions, that nobody can seem to answer
> 
> while : ; do
>      mkdir x
>      cd x
> done
> 
> 1. How can you prevent users from running this in their home directory, 
> without cutting off their shell account
> 2. How can you get rid of the directory once it has 300 or so 
> subdirectories. The shell keeps saying there is no such directory, and 
> nothing seems to delete it. I tried moving it to a floppy, but it worked 
> for 45 minutes and I didn't want to burn out the drive.
> 
> As Always, If you send your address with your answer, I'll send you 20 
> Soviet Roubles,
> 
> Thanks for reading,...
> Dave
> 
> 
1. try to determine if they did it on purpose, if so hire someone to take 
   them out 8).

2. Run the following, it uses ftw to go down in the tree via a depth 
   first search, and builds a unique remove directory on its way back 
   out.

	find x -type d -depth -exec rmdir {} \;

BTW>
McCane Consulting
700 S Main
Independence, MO 64050-4414

^   ^
o | o
  ^
\___/

+-------------------------------------+----------------------------------------+
He rides a cycle of mighty days, and   \  Wm Brian and Lori McCane
he represents the last great schizm     \  McCane Consulting
among the gods. Evil though he obviously \  root@bmccane.uit.net
is, he is a mighty figure, this father of \  http://bmccane.uit.net/
my spirit, and I respect him as the sons   \  http://bmccane.uit.net/~pictures/
of old did the fathers of their bodies.     \  http://bmccane.uit.net/~bmccane/
    Roger Zelazny - "Lord of Light"          \  http://bmccane.uit.net/~bbs/
+---------------------------------------------+--------------------------------+




Want to link to this message? Use this URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?Pine.BSF.3.91.970221223450.3400A-100000>