[requirement]
1.kernel must be compiled with quota support ( Modern linux are usually OK)
2.quota rpm package installed
put ‘usrquota’ in the partition you want to activate quota in /etc/fstab
/dev/sda2 / ext2 defaults 1 1 /dev/sda3 /usr ext2 defaults,usrquota 1 2 ...
create quota.user in the partition
$> touch /usr/quota.user
[commands]
1. quotacheck -a
checking all partitions for any user files and directories (should be in the system initialize
file /etc/rc.d/rc.sysinit)
2. quotaon -a
activate all the quotas in all partitions (should be in /etc/rc.d/rc.sysinit)
3. quotaoff
deactivate quotas
4. edquota username
define user quota
example
$> edquota -p cuser duser1 duser2 duser3...
(copying cuser's quota info to duser1, duser2...)
$> edquota -t
(setting grace period)5. repquota -a
see all the user quota of all partition