If you have setup quota on your system:
man edquota
If not, follow these (this what I do in Red Hat):
1. Login as root and go into single mode by running this command:
telinit 1
2. Edit /etc/fstab and change the /home line to this:
LABEL=/home /home ext3 defaults,usrquota 1 2 # this setup sets quotas for users only
(usrquota = users, grpquota = group. you can use both if want = defaults,usrquota,grpquota)
3. Remount the /home partition to update the kernels mount table (/etc/mtable) using this command:
mount / home -o remount,rw
4. To create the quota files, run this:
quotacheck -uv /home
5. To enable quota on /home, run this:
quotaon /home
Quota is now enabled in /home. To go back into multi-user text or GUI mode, run this:
telinit 3
or
telinit 5
If you want to edit quota settings for a certain user (like user1), run this:
edquota -u user1
|