Skip site navigation (1)Skip section navigation (2)
Date:      Fri, 21 Feb 1997 15:02:47 -0500 (EST)
From:      "R. A. Nethercott" <rnet@tchnet.tchnet.com>
To:        David Stickney <david@wvb.gomel.by>
Cc:        "'FBSD ISP'" <freebsd-isp@FreeBSD.ORG>
Subject:   Re: Big Directories..
Message-ID:  <Pine.BSF.3.91.970221150019.25856A-100000@tchnet.tchnet.com>
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

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 <dir name goes here> 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




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