Re: limit directory size

From: Doug Freyburger (dfreybur_at_yahoo.com)
Date: 11/18/03


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.



Relevant Pages

  • Re: Disk quotas
    ... users' home folders. ... I did think of that but am hesitant to do the partition thing. ... With managed users' disk quotas on the boot volume, ... With software managed disk quotas this should take only a ...
    (comp.sys.mac.system)
  • Re: Disk Space
    ... you are copying it to a partition with a FAT32 filesystem. ... Alternatively make sure that you haven't defined disk quotas or if you have, ... > copy data, not enough free disk space, even though there ...
    (microsoft.public.windows.server.sbs)
  • Re: Diskpart.exe and Raid 1 Hardware Controller
    ... From what I am understanding is I should have ... one partition for the OS and the 2nd partition for the ... Disk quotas on users personal folders might be another reason for an additional partition, as these can only be set at the partition level. ... Steve Foster [SBS MVP] ...
    (microsoft.public.windows.server.sbs)
  • Disk Quotas on single partirion 2003 server?
    ... We've got a "backup" DC that is also a file server and it's all on a singe ... RAID5+1 partition. ... I'd like to employ disk quotas on our Home folders but I'm worried about ...
    (microsoft.public.windows.server.setup)