Operating System - Linux
1755320 Members
4069 Online
108831 Solutions
New Discussion юеВ

change the quota by group

 
juno2
Super Advisor

change the quota by group

Please suggest how can I change the quota by group , eg. I have group (/etc/group) - acc1 , acc2 & acc3 , each group has about 300 users, how can I change the disk quota ( I use edquota ) of each user in the acc1 to 10M , acc2 to 20M , acc3 to 30M ? is there any command can make it ? thx

3 REPLIES 3
Jerome Baron
Respected Contributor

Re: change the quota by group

Hi,

You can use edquota -g

Regards,
Jerome
Marcin Golembski_1
Honored Contributor

Re: change the quota by group

Change quotas for one user in each group to have prototypes and use edquota with -p option, e.g.:

edquota -p tom `awk -F: '$4 == 555 {print $1}' /etc/passwd`

This should set quotas of all users belonging to the group which id is 555 the same as of user tom.

Make sure you have a backup of your quota configuration files - just in case :-)

Zeev Schultz
Honored Contributor

Re: change the quota by group

this thread - more on quotas:
http://forums.itrc.hp.com/cm/QuestionAnswer/1,,0x99610ea029a2d711abdc0090277a778c,00.html
So computers don't think yet. At least not chess computers. - Seymour Cray