Skip site navigation (1)Skip section navigation (2)
Date:      Thu, 31 Aug 2000 17:43:09 -0300
From:      Ignacio Zelaya <izelaya@infovia.com.ar>
To:        Bill Everhart <bille@server.spikes.net>, "freebsd-questions@FreeBSD.ORG" <freebsd-questions@FreeBSD.ORG>
Subject:   Re: Disk quota
Message-ID:  <39AEC35D.E74C815D@infovia.com.ar>
References:  <Pine.BSF.4.10.10008311554170.1037-100000@server.spikes.net>

next in thread | previous in thread | raw e-mail | index | archive | help
Bill Everhart wrote:
> 
> hello,
> 
> Can anyone help me with quotas? My question is about group quotas and how
> they work. If I created a group called 'webusers' and did:
> 
> edquota -g webusers and did:
> 
> Quotas for group webusers:
> /web: blocks in use: 1197877, limits (soft = 10, hard = 15)
>         inodes in use: 38113, limits (soft = 0, hard = 0)
> 
> Would that give each user with the group 'webusers' 10 megs soft and 15
> megs hard or would that set a 10/15 meg limit on the group webusers
> stoping at the first 15 megs anyone within the group stored?
> 
> -bill
> 
> To Unsubscribe: send mail to majordomo@FreeBSD.org
> with "unsubscribe freebsd-questions" in the body of the message

I dont know haw works qroup quotas, but can make a simple test:

log as user1 (of group webusers) and do:

	dd if=/dev/zero of=delet_this_file bs=1k count=10k

log as user2 (also of group webusers) and repeat:
	
	dd if=/dev/zero of=delet_this_file bs=1k count=10k

if you can generate the file, the quotas aplies to every user of group.
if you can't, the quotas aplies to the total of users of the group.

You can manage quotas at this way:

>From HandBook:
---------------
Sometimes it is desirable to set quota limits on a range of uids. This
can be done by use of the -p option on the edquota command. First,
assign the desired quota limit to a user, and then run edquota -p
protouser startuid-enduid. For example, if user test has the desired
quota limits, the following command can be used to duplicate those quota
limits for uids 10,000 through 19,999: 

edquota -p test 10000-19999

>From edquota man page:
----------------------

If the -p option is specified, edquota will duplicate the quotas of the
     prototypical user specified for each user specified.  This is the
normal
     mechanism used to initialize quotas for groups of users.  If the
user
     given to assign quotas to is a numerical uid range (e.g.
1000-2000), then
     edquota will duplicate the quotas of the prototypical user for each
uid
     in the range specified.  This allows for easy setup of default
quotas for
     a group of users.  The uids in question do not have to be currently
as-
     signed in /etc/passwd.        

So you can make a profile of quota, then asign all new WEBusers in that
range.

Regards,
-- 
Ignacio Zelaya


To Unsubscribe: send mail to majordomo@FreeBSD.org
with "unsubscribe freebsd-questions" in the body of the message




Want to link to this message? Use this URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?39AEC35D.E74C815D>