From owner-freebsd-questions Mon Jul 21 09:11:38 1997 Return-Path: Received: (from root@localhost) by hub.freebsd.org (8.8.5/8.8.5) id JAA20913 for questions-outgoing; Mon, 21 Jul 1997 09:11:38 -0700 (PDT) Received: from mail.euroweb.hu (mail.euroweb.hu [193.226.220.4]) by hub.freebsd.org (8.8.5/8.8.5) with ESMTP id JAA20903 for ; Mon, 21 Jul 1997 09:11:30 -0700 (PDT) Received: (from gyurcsek@localhost) by mail.euroweb.hu (8.8.5/8.8.5) id SAA23853; Mon, 21 Jul 1997 18:10:36 +0200 (MET DST) Received: (from zgabor@localhost) by CoDe.hu (8.7.5/8.7.3) id SAA00248; Mon, 21 Jul 1997 18:16:22 +0200 (MET DST) From: Zahemszky Gabor Message-Id: <199707211616.SAA00248@CoDe.hu> Subject: Re: Quotas To: freebsd-questions@freebsd.org (FreeBSD questions) Date: Mon, 21 Jul 1997 18:16:22 +0200 (MET DST) Cc: shawn@luke.cpl.net In-Reply-To: from Shawn Ramsey at "Jul 20, 97 03:53:33 pm" X-Mailer: ELM [version 2.4ME+ PL11 (25)] MIME-Version: 1.0 Content-Type: text/plain; charset=US-ASCII Content-Transfer-Encoding: 7bit Sender: owner-freebsd-questions@freebsd.org X-Loop: FreeBSD.org Precedence: bulk > 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"