HowtoForge Forums | HowtoForge - Linux Howtos and Tutorials

HowtoForge Forums | HowtoForge - Linux Howtos and Tutorials (http://www.howtoforge.com/forums/index.php)
-   Installation/Configuration (http://www.howtoforge.com/forums/forumdisplay.php?f=4)
-   -   Disk Quotas (http://www.howtoforge.com/forums/showthread.php?t=1)

lola 19th April 2005 15:13

Disk Quotas
 
Hi,

I just got my first Web server up, SuSE 9.2 with Apache2. Now my question is how can I set a limit as to how much space is available for a web site that I put on my server? Like it is limited to 50 megs of space.

Thanks for your help.

Lola

falko 19th April 2005 16:13

Quote:

I just got my first Web server up, SuSE 9.2 with Apache2.
First, you have to enable quota on your system. Have a look at the quota section here: http://www.howtoforge.com/perfect_setup_suse_9.2

Quote:

Now my question is how can I set a limit as to how much space is available for a web site that I put on my server?
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.


All times are GMT +2. The time now is 09:33.

Powered by vBulletin® Version 3.8.7
Copyright ©2000 - 2014, vBulletin Solutions, Inc.