From owner-freebsd-isp Fri Feb 21 12:00:22 1997 Return-Path: Received: (from root@localhost) by freefall.freebsd.org (8.8.5/8.8.5) id MAA18183 for isp-outgoing; Fri, 21 Feb 1997 12:00:22 -0800 (PST) Received: from tchnet.tchnet.com (tchnet.tchnet.com [198.109.196.2]) by freefall.freebsd.org (8.8.5/8.8.5) with SMTP id MAA18178 for ; Fri, 21 Feb 1997 12:00:17 -0800 (PST) Received: (from rnet@localhost) by tchnet.tchnet.com (8.6.12/8.6.9) id PAA26010; Fri, 21 Feb 1997 15:02:48 -0500 Date: Fri, 21 Feb 1997 15:02:47 -0500 (EST) From: "R. A. Nethercott" 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 Ok, just as a warning, this will be the first time I have answered a question here...so correct me if I am wrong. =) I think a simple rm -R should work. As for the first part, I dont think there is a way to not let a sh user to not make directories in his/her home dir. Perhaps a rsh? Roy