quota: set quota by group instead of user?

quota: set quota by group instead of user?

Post by Ron Grig » Tue, 12 Nov 1996 04:00:00

> I am planning on installing a quota system on my box running kernel
> 2.0.0 (slakware).  As I already have 600+ users, I am wondering if it
> is possible to set up disk quotas so that I can just say "everyone in
> group users has this much space, everyone in group spam gets X ..."

> The docs that I looked through only talked about setting quotas on an
> individual basis.  Thanks much in advance.

> --chris

No. By group it means that the whole group can only consume that much
space but it doesn't apply to the individual users.  

An alternative is to set up a generic account and use it to apply to
your "users" group.  i.e.  Create a dummy user, then run edquota on the
dummy account and give it the quotas you want your users to have. Then
write a script that uses that dummy user quotas to apply to all users in
your list. e.g.:

# Example script for setting up quotas on existing user database.
# Using grep to search for gid of 100 - the users group gid.

usrlst=`grep \:100\: /etc/passwd |sed 's/\:.*//'`
for userid in $usrlst
edquota -p dummy $userid
# End of script

You can then create another script for adding new users to your system
using the same type of logic.

Hope this helps.


|Grigg Consulting - 2009 Westwood Ave. - Springdale, Ar - 72762  |


1. Quotas : Format of quota.users & quota.groups ?


I am running Linux-FT with kernel 1.2.13 and quota patches. I would like
to enable quotas in order to control memory usage by apps (I'm trying to
debug an app that keeps grabbing all system memory, preventing me from
typing kill).

In order to enable quotas, files called quota.users and quota.groups
need to be present in the root directory. The 'edquota'
program is supposed to be used to set these up, but it simply invokes vi,
expecting the user to know the file format. The man pages say that
the file format is 'inscrutable', but don't actually describe it anywhere!

Anyone know the correct format ?

Thanks in advance,


| Steve Mottram                                                             |
|                                                                           |
| University Department of Anaesthesia  |    Internal Phone : LRI 5694      |
| Leicester Royal Infirmary             |    Phone  :  +44 (0)116 258 5291  |
| Leicester LE1 5WW                     |    Fax    :  +44 (0)116 285 4487  |

| Witty bit deleted due to budget cuts.                                     |

2. ".forward" syntax question.

3. RH71: Confused Quotas - quotaon looking for quota.user, edquota looking for aquota.user

4. Enlightenment unenlightened?

5. How can I set quota on a group of users ?

6. Replacing harddrives

7. How to set quota and mail quota

8. konquerer and http

9. user quotas and printer usage quotas on NT domain

10. quota: format of quota.user

11. Any way to set group quota

12. question re: setting up group quotas

13. removing quota limit on groups/users