From owner-freebsd-isp Fri Feb 21 20:40:56 1997 Return-Path: Received: (from root@localhost) by freefall.freebsd.org (8.8.5/8.8.5) id UAA19968 for isp-outgoing; Fri, 21 Feb 1997 20:40:56 -0800 (PST) Received: from bmccane.uit.net (bmccane.uit.net [208.129.189.48]) by freefall.freebsd.org (8.8.5/8.8.5) with ESMTP id UAA19951 for ; Fri, 21 Feb 1997 20:40:40 -0800 (PST) Received: (from root@localhost) by bmccane.uit.net (8.8.5/8.7.3) id WAA04094; Fri, 21 Feb 1997 22:39:02 -0600 (CST) Date: Fri, 21 Feb 1997 22:39:00 -0600 (CST) From: Wm Brian McCane To: David Stickney cc: "'FBSD ISP'" Subject: Re: Big Directories.. In-Reply-To: <01BC2023.E0990480@david> Message-ID: MIME-Version: 1.0 Content-Type: TEXT/PLAIN; charset=US-ASCII Sender: owner-isp@freebsd.org X-Loop: FreeBSD.org Precedence: bulk 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/ +---------------------------------------------+--------------------------------+