OUT OF DATE as of 2008-11-01.
Steps: (from http://www.redhat.com/docs/manuals/linux/RHL-8.0-Manual/admin-primer/s1-storage-quotas.html)
- Modified /etc/fstab entry for /home and rebooted:
/dev/md0 /home ext3 defaults,usrquota,grpquota 1 2 - Run:
quotacheck -avug If that fails, can try:
quotacheck -avugcm
- Added the quotacheck command to /etc/cron.weekly with the script:#!/bin/bash
# Update the database that keeps track of quotas
# Created by Mark Knight (4.13.06)
# Modified by Mark Knight (5.06.06)
quotaoff -a
quotacheck -agum
quotaon -aexit 0
- Set user quotas:
- Command:
edquota knightm - Disk quotas for user knightm (uid 500):
Filesystem blocks soft hard inodes soft hard
/dev/md0 1420 512000 1000000 126 0 0
This sets a soft limit of 512 MB on the user “knightm,” with a hard limit of 1 gig. - Check limits on quotas with
repquota /home
Be First to Comment