edquota show's the quota, but the quota command does not: [root at mail ~]# setquota -u 12345 10000 11000 0 0 -a /dev/hda3 [root at mail ~]# edquota -u 12345 Disk quotas for user 12345 (uid 12345): Filesystem blocks soft hard inodes soft hard /dev/hda3 0 10000 11000 0 0 0 ~ ~ [root at mail ~]# quota -u 12345 Disk quotas for user #12345 (uid 12345): none On Wed, Apr 22, 2009 at 9:38 AM, Xn Nooby <xnooby at gmail.com> wrote: > Hello, I am having some trouble getting quota's to work. When I try to > set the quota for a user, it does not show up when I run repquota. I > am doing this on a Redhat (RHEL5) machine (I assume it is the same on > Centos). I think I am missing a step, but this is what I am doing: > > > (1) I add usrquota to the /etc/fstab file, then reboot > > LABEL=/home /home ext3 defaults,usrquota 1 2 > > (2) Verify /home is /dev/hda3 > > /sbin/tune2fs -l /dev/hda3 | grep volume > Filesystem volume name: /home > > > (3) Create the user quota file > > quotacheck -cmu /home > ls –l /home/aquota.user > repquota /home > > > [root at mail ~]# repquota /home > *** Report for user quotas on device /dev/hda3 > Block grace time: 7days; Inode grace time: 7days > Block limits File limits > User used soft hard grace used soft hard grace > ---------------------------------------------------------------------- > root -- 184224 0 0 4 0 0 > 12345 -- 208 0 0 49 0 0 > 54321 -- 172 0 0 40 0 0 > > > (4) Turn on quotas > > quoataon /home > > (5) Add a user quota > > setquota -u 12345 10000 11000 0 0 -a /dev/hda3 > > (6) Recalculate the quotas > > quotaoff /home > quotacheck -amu > quotaon /home > > (7) Check if the quotas are active > > ls –l /home/aquota.user > repquota /home > > > [root at mail ~]# repquota /home > *** Report for user quotas on device /dev/hda3 > Block grace time: 7days; Inode grace time: 7days > Block limits File limits > User used soft hard grace used soft hard grace > ---------------------------------------------------------------------- > root -- 184224 0 0 4 0 0 > 12345 -- 208 0 0 49 0 0 > 54321 -- 172 0 0 40 0 0 > > > (8) Shouldn't the limits look like this: ??? > > > User used soft hard grace used soft hard grace > ---------------------------------------------------------------------- > root -- 184224 0 0 4 0 0 > 12345 -- 208 10000 11000 49 0 0 > 54321 -- 172 0 0 40 0 0 >