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.
Want to support HowtoForge? Become a subscriber!
|
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 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.
|



Recent comments
11 hours 5 min ago
12 hours 4 min ago
15 hours 51 min ago
17 hours 5 min ago
20 hours 42 min ago
1 day 3 hours ago
1 day 12 hours ago
1 day 14 hours ago
2 days 5 hours ago
2 days 7 hours ago