How can I set a limit as to how much space is available for a web site I put on my server? Like it is limited to 50 MB of space.

First, you have to enable quota on your system. Have a look at the quota section of the appropriate "Perfect Setup" tutorial for your distribution on HowtoForge.

After you've enabled quota on your system:

To set quotas for a user or group, use the setquota command (see

man setquota

for more information), e.g.:

setquota -g $group $blocks $blocks 0 0 -a
setquota -u $username $blocks $blocks 0 0 -a

Replace $group, $username and $blocks. Note: $blocks is the quota size in MB * 1024! To deactivate quotas for a user or group, run these commands and set $blocks to 0.

Falko Timme

About Falko Timme

Falko Timme is an experienced Linux administrator and founder of Timme Hosting, a leading nginx business hosting company in Germany. He is one of the most active authors on HowtoForge since 2005 and one of the core developers of ISPConfig since 2000. He has also contributed to the O'Reilly book "Linux System Administration".

Share this page:

Suggested articles

0 Comment(s)

Add comment