Skip site navigation (1)Skip section navigation (2)
Date:      Mon, 21 Jul 1997 18:16:22 +0200 (MET DST)
From:      Zahemszky Gabor <zgabor@CoDe.hu>
To:        freebsd-questions@freebsd.org (FreeBSD questions)
Cc:        shawn@luke.cpl.net
Subject:   Re: Quotas
Message-ID:  <199707211616.SAA00248@CoDe.hu>
In-Reply-To: <Pine.BSF.3.95.970720155147.260A-100000@luke.cpl.net> from Shawn Ramsey at "Jul 20, 97 03:53:33 pm"

next in thread | previous in thread | raw e-mail | index | archive | help
> is there a way to set Quotas for all individual users in a certain group?
> For example make every user in the group "cpl" have a 10MB hard limit, and
> 12MB soft limit? 

Well, sort of.  man edquota says, that it has a -g group option.
But I think, it's a limit of all of them, and not for everybody in the
group.  But what about the -p (prototype) option?  Eg:
group staff has the members: staff1, staff2, staff3, etc, so in the group
file there is a line:
$ grep '^staff:' /etc/group
staff::1234:staff1,staff2,staff3,etc
$ edquota staff1
$ edquota -p staff1 `grep '^staff:' /etc/group|cut -d: -f4|sed -e
's/staff1,//' -e 's/,/ /g'`
$

But I think you cannot set a soft limit, which is bigger than a hard limit ;-)
Maybe the opposite.

Gabor

-- 
#!/bin/ksh
Z='21N16I25C25E30, 40M30E33E25T15U!' ;IFS=' ABCDEFGHIJKLMNOPQRSTUVWXYZ ';set $Z;for i { [[ $i = ? ]]&&print $i&&break;[[ $i = ??? ]]&&j=$i&&i=${i%?};typeset -i40 i=8#$i;print -n ${i#???};[[ "$j" = ??? ]]&&print -n "${j#??} "&&j=;typeset +i i;};IFS=' 0123456789 ';set $Z;X=;for i { [[ $i = , ]]&&i=2;[[ $i = ?? ]]||typeset -l i;X="$X $i";typeset +l i;};print "$X"



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