To implement file quota we need to edit /etc/fstab file and add the usrquota and grpquota option to the partition for which you want to enable quotas
#vi /etc/fstab
/dev/VolGroup00/LogVol00 /ext3 defaults,usrquota,grpquota 11
save the file
Remount the filesystem
#mount -o remount
or if we have entered more than one filesystem in the fstab file then to remount all the filesystem
#mount -a remount
Run quotacheck command to check for an errors on the filesystem with quota check
#quotacheck -augmv
Syntax info are as follows:
a= perform quotacheck on all filesystems
m= the filesystem should not be mounted as read-only mode
u & g= tells to check for users and groups
Turn on the quota
#quotaon -augmv
Apply the quota for a particular user
#edquota -u sushanth
Apply quota for particular group
#edquota -r susgrp
Tuesday, November 6, 2007
Subscribe to:
Post Comments (Atom)
No comments:
Post a Comment