Script to set different quota depending on User's Group ID
I am running RH9 and on a dedicated 40GB HDD, I have the /home folders.
I installed the quotas and it is working.
I need a Script to set different quotas depending on User's Group ID.
I have 700 users that belong to 9 different groups.
I am looking for a script to read the /etc/passwd and if the group ID is say 505, set the quota to 25MB, if the group ID is 506 set the quota to 30MB.
I am not sure how to go about writing this script.
Any help or guidance will be much appreciated!