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.