M Hughes
04-10-2001, 09:27 AM
I am trying to setup Group Quotas on a Red Hat 6.2 Server here at work and running into a few troubles. Here's all the steps I took prior to running into my problems:
1 - Verified that the Kernel was configured for Quotas
2 - Place a quota script in the /etc/rc.d/init.d directory and made a symbolic link to it in the rc3.d directory (S87quota - late enough so that it will start after the other stuff loads)
3 - Modified /etc/fstab so that the partition I want has grpquota and usrquota enabled
4 - Created the quota records by 'touch /quota.user' & 'touch /quota.group'. I then 'chmod 600 quota.user' & 'chmod 600 quota.group'
5 - Instead of rebooting, I ran '/bin/mount -a' to reload the fstab file.
All of that has worked correctly. I then moved on to creating a new group called 'asymonte-com' for a web domain we are trying to limit to 50MB of space. I created the group with 'groupadd asymonte-com' and then added the primary username with 'usermod -Gasymonte-com asymonte'. In checking the /etc/group file, 'asymonte-com' exists with 'asymonte' as a member of it. I then begin to assign the quotas.
I ran /usr/sbin/edquota -g asymonte-com and made the first line look like this : /dev/sda6: blocks in use: 0, limits (soft = 51200, hard = 51200). I did nothing to the second line since we are not using Soft or Hard limits. Before doing anything else, I ran /sbin/quotacheck -avug and it checked the entire drive. That took about fifteen minutes which isn't bad for a 17GB hard drive. I finally ran /usr/sbin/repquota -a to generate a report. The report that came back showed:
Block limits File limits
User used soft hard grace used soft hard grace
asymonte-c-- 4 0 0 1 0 0
asymonte -- 10728 0 0 73 0 0
Running 'quota -g asymonte-com' shows:
Disk quotas for group asymonte-com (gid 1479): none
Am I doing something wrong here? The steps I followed were from the LDP HOWTO on quotas. If I setup User quotas, it shows up right but we really need the Group quotas to work. Any help would be really really appreciated. Thanks.
M Hughes
mhughes@inav.net
1 - Verified that the Kernel was configured for Quotas
2 - Place a quota script in the /etc/rc.d/init.d directory and made a symbolic link to it in the rc3.d directory (S87quota - late enough so that it will start after the other stuff loads)
3 - Modified /etc/fstab so that the partition I want has grpquota and usrquota enabled
4 - Created the quota records by 'touch /quota.user' & 'touch /quota.group'. I then 'chmod 600 quota.user' & 'chmod 600 quota.group'
5 - Instead of rebooting, I ran '/bin/mount -a' to reload the fstab file.
All of that has worked correctly. I then moved on to creating a new group called 'asymonte-com' for a web domain we are trying to limit to 50MB of space. I created the group with 'groupadd asymonte-com' and then added the primary username with 'usermod -Gasymonte-com asymonte'. In checking the /etc/group file, 'asymonte-com' exists with 'asymonte' as a member of it. I then begin to assign the quotas.
I ran /usr/sbin/edquota -g asymonte-com and made the first line look like this : /dev/sda6: blocks in use: 0, limits (soft = 51200, hard = 51200). I did nothing to the second line since we are not using Soft or Hard limits. Before doing anything else, I ran /sbin/quotacheck -avug and it checked the entire drive. That took about fifteen minutes which isn't bad for a 17GB hard drive. I finally ran /usr/sbin/repquota -a to generate a report. The report that came back showed:
Block limits File limits
User used soft hard grace used soft hard grace
asymonte-c-- 4 0 0 1 0 0
asymonte -- 10728 0 0 73 0 0
Running 'quota -g asymonte-com' shows:
Disk quotas for group asymonte-com (gid 1479): none
Am I doing something wrong here? The steps I followed were from the LDP HOWTO on quotas. If I setup User quotas, it shows up right but we really need the Group quotas to work. Any help would be really really appreciated. Thanks.
M Hughes
mhughes@inav.net