Limiting home folder size

Is there any way to limit the size of each users home folder? My home directory is on it’s own partition, but I would like to limit each users home folder to a certain size. That way one user can’t use up all of the home directory space.

While not as granular as what I suspect you’re after, Linux offers quota features through edquota & setquota. They require you enable quotas on the partition first–which works really well if you’ve put /home on its own partition. You can set soft & hard limits on both max file size as well as max # of inodes (files) a user can create.

Hopefully this information helps answer your question.

Hi
If you use the YaST partitioner module to set the quota fstab entry for
you then you can use YaST user management module to set the quota
limits.


Cheers Malcolm °¿° (Linux Counter #276890)
openSUSE 11.1 (i586) Kernel 2.6.27.21-0.1-pae
up 21:39, 2 users, load average: 0.49, 0.69, 0.38
ASUS eeePC 1000HE ATOM N280 1.66GHz | GPU Mobile 945GM/GMS/GME

What is the difference between hard and soft limits?

Quota mini-HOWTO: Quota setup: tools

Awesome, thanks!