Setting up disk quotas

How to set up per-user disk quotas using Webmin.

A single user box doesn’t need disk quotas; the size of /home serves as a de facto quota. But as you add users, and one of the strengths of Linux is that it is a true multiuser system, you may want or need to set up quotas. Here I’ll describe how to do so using my favorite system administration tool, Webmin.

If they aren’t already installed, use your distribution’s package manager to install quota and Webmin. You will also need to know which partition holds your users’ files; here I assume /home, the normal location.

Open Webmin. In System – Disk and Network Filesystems, open /home and find Mount Options – Use Quotas. If quotas aren’t already enabled, enable them. There are several options; “User Only” is sufficient for basic needs. Save your work. TODO: Determine why, returning to this screen to check my work, it still says “No”. My guess is that this is a cosmetic bug.

In Webmin’s main menu, press “Refresh Modules”. Webmin will move the disk quotas module from the unused modules list to the System list. Open it, and find the status of /home. If it is “User Quotas Inactive”, then enable them. Once enabled, enter /home for editing. Set quotas as desired on particular users.

While you’re there, consider setting default quotas to be automatically applied to new user accounts.


About Warren Post

So far: Customer support guy, jungle guide, IT consultant, beach bum, entrepreneur, teacher, diplomat, over-enthusiastic cyclist. Tomorrow: who knows?
This entry was posted in Uncategorized and tagged . Bookmark the permalink.

Leave a Reply

Fill in your details below or click an icon to log in: Logo

You are commenting using your account. Log Out /  Change )

Google+ photo

You are commenting using your Google+ account. Log Out /  Change )

Twitter picture

You are commenting using your Twitter account. Log Out /  Change )

Facebook photo

You are commenting using your Facebook account. Log Out /  Change )


Connecting to %s