centOS 4.4 user quota not working !
hi,
I tried to setup user quota for 2 users one is jimmy and the other is joe:
jimmy:x:503:504::/home/jimmy:/bin/bash
joe:x:508:510::/usr/local/tomcat5/webapps/leadserve_new:/bin/bash
this is my /etc/fstab:
LABEL=/home1 /home ext3 defaults,usrquota,grpquota 1 2
LABEL=/opt1 /opt ext3 defaults 1 2
none /proc proc defaults 0 0
none /sys sysfs defaults 0 0
LABEL=/tmp /tmp ext3 defaults 1 2
LABEL=/u01 /u01 ext3 defaults 1 2
LABEL=/usr /usr ext3 defaults,usrquota,grpquota
1 2
this is output of my repquota -a :
[root@devdb webapps]# q
-bash: q: command not found
[root@devdb webapps]# repquota -a
*** Report for user quotas on device /dev/sda2
Block grace time: 7days; Inode grace time: 7days
Block limits File limits
User used soft hard grace used soft hard grace
----------------------------------------------------------------------
root -- 104424 0 0 504 0 0
apache -- 44 0 0 12 0 0
oiprod -- 68 0 0 16 0 0
oracle -- 568692 0 0 231 0 0
svn -- 191884 0 0 15197 0 0
jimmy -- 2000 0 2000 31 0 0
mark -- 56 0 0 13 0 0
howard -- 56 0 0 13 0 0
cc -- 52 0 0 12 0 0
postfix -- 52 0 0 12 0 0
joe -- 4 0 0 1 0 0
*** Report for user quotas on device /dev/sda6
Block grace time: 7days; Inode grace time: 7days
Block limits File limits
User used soft hard grace used soft hard grace
----------------------------------------------------------------------
root -- 4406980 0 0 192830 0 0
rpm -- 2500 0 0 91 0 0
oiprod -- 1200 0 0 259 0 0
oracle -- 12 0 0 3 0 0
joe -- 6828 0 25000 12 0 0
when I tested them using ftp, the hard limit for jimmy is working, but for joe is not. can anyone tell me why?
btw, after I modified /etc/fstab , I did reboot server.
|