Re: limit directory size
From: Doug Freyburger (dfreybur_at_yahoo.com)
Date: 11/18/03
- Next message: Carl Lowenstein: "Re: Tape rewind on Solaris startup"
- Previous message: PJ: "ftp user restrictions"
- In reply to: Jörg Kleimann: "limit directory size"
- Messages sorted by: [ date ] [ thread ] [ subject ] [ author ]
Date: 18 Nov 2003 08:20:39 -0800
Jörg Kleimann wrote:
>
> Hi, perhaps someone knows how to limit the size of a certain directory
> within a partition.
There is no way to do that directly, so you will have to approach it
indirectly.
Make the directory owned by its own user. Turn on disk quotas. Give
that special user a *very* small quota. That way the directory can
only grow to a certain size. Set the permissions to 777 or set them
to 775 and make it owned by the group of users you want to be able to
create files in it.
This strategy will only limit the number of files flat. If they
create subdirectories, you'll need to give them disk quotas, or make
the directory tree its own small filesystem.
- Next message: Carl Lowenstein: "Re: Tape rewind on Solaris startup"
- Previous message: PJ: "ftp user restrictions"
- In reply to: Jörg Kleimann: "limit directory size"
- Messages sorted by: [ date ] [ thread ] [ subject ] [ author ]
Relevant Pages
|