CLASS="section" BGCOLOR="#FFFFFF" TEXT="#000000" LINK="#0000FF" VLINK="#840084" ALINK="#0000FF" >

20.4. Assign quota for a particular group

Consider, for example, you have a group with the group id webusers on your system. The following command takes you into the vi editor to edit quotas for the group webusers on each partition that has quotas enabled: To edit and modify quota for group webusers, use the following command:

                [root@deep] /# edquota -g webusers
              

                Quotas for group webusers:
                /dev/sda6: blocks in use: 6, limits (soft = 0, hard = 0)
                inodes in use: 6, limits (soft = 0, hard = 0)
              
The procedure is the same as for assigning quotas for a particular user; as described above, you must modify the parameter of soft = and save your change.

20.4.1. Assign quota for groups of users with the same value

The edquota program has a special option -p that assign quotas for groups of users with the same value assigned to an initial user. Assuming that you want to assign users starting at UID 500 on the system the same value as the user wahib, we would first edit and set wahib's quota information, then execute: To assign quota for group of users with the same value, use the following command:

                  [root@deep] /# edquota -p wahib `awk -F: '$3 > 499 {print $1}' /etc/passwd`
                
The edquota program will duplicate the quota that we have set for the user wahib to all users in the /etc/passwd file that begin after UID 499.

Further documentation for more details, please consult man pages:

edquota(8)

- edit user quotas

quota(1)

- display disk usage and limits

quotacheck(8)

- scan a file system for disk usages

quotactl(2)

- manipulate disk quotas

quotaon, quotaoff(8)

- turn file system quotas on and off

repquota(8)

- summarize quotas for a file system

rquota(3)

- implement quotas on remote machines