Report this

What is the reason for this report?

How To Enable User Quotas

Published on February 12, 2013
How To Enable User Quotas

Status: Deprecated

This article is deprecated and no longer maintained.

Reason:

The information in this article is out of date and untested. More recent information about quotas is listed below.

See Instead:

How To Set Filesystem Quotas on Ubuntu 18.04 or Debian 9.

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:

nano /etc/fstab

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 /
By Etel Sverdlov

Thanks for learning with the DigitalOcean Community. Check out our offerings for compute, storage, networking, and managed databases.

Learn more about our products

About the author

Etel (Sverdlov) Friedmann
Etel (Sverdlov) Friedmann
Author
See author profile

Former Director of Community at DigitalOcean. Expert in cloud topics including LAMP Stack, CentOS, Ubuntu, MySQL, SSL certificates, and more.

Category:

Still looking for an answer?

Was this helpful?
Creative CommonsThis work is licensed under a Creative Commons Attribution-NonCommercial- ShareAlike 4.0 International License.
Join the Tech Talk
Success! Thank you! Please check your email for further details.

Please complete your information!

The developer cloud

Scale up as you grow — whether you're running one virtual machine or ten thousand.

Start building today

From GPU-powered inference and Kubernetes to managed databases and storage, get everything you need to build, scale, and deploy intelligent applications.