This article is deprecated and no longer maintained.
The information in this article is out of date and untested. More recent information about quotas is listed below.
Quotas can be used on servers to set limits on how much diskspace an individual server user can take up on a server. They can be edited in the /etc/fstab file.
In order to enable quotas, first open the /etc/fstab file:
Within that file, edit the following line, adding in the word, “usrquota”:
LABEL=DOROOT / ext4 errors=remount-ro,usrquota 0 1
Save and exit
The /etc/fstab file should now look like this:
LABEL=DOROOT / ext4 errors=remount-ro,usrquota 0 1 none /dev/shm tmpfs defaults 0 0
To finish up, remount the file system whose fstab entry has ben changed:
mount -o remount /
Join our DigitalOcean community of over a million developers for free! Get help and share knowledge in our Questions & Answers section, find tutorials and tools that will help you grow as a developer and scale your project or business, and subscribe to topics of interest.Sign up
Click below to sign up and get $100 of credit to try our products over 60 days!