Linux – How to give quota for linux users

disk-space-utilizationlinuxquota

I want to give quota for each user on my linux box, so that each one will get only specified amount of disk space.

Best Answer

Ideally you will have /home as a separate partition. If you do, try this:
Find the filesystem for /home, for example:
mount | grep "/home"
/dev/sda3 on /home type ext3 (rw,noatime,errors=remount-ro)
mount -o remount,quota /home
quotacheck /dev/sda3
edquota username
Set the soft and hard quotas in there. This will only apply for the current boot, to make it survive a reboot edit /etc/fstab and add ",quota" to the end of the mount options for /dev/sda3 (in this example).

Related Topic