From owner-freebsd-isp Wed Aug 26 08:09:20 1998 Return-Path: Received: (from majordom@localhost) by hub.freebsd.org (8.8.8/8.8.8) id IAA16063 for freebsd-isp-outgoing; Wed, 26 Aug 1998 08:09:20 -0700 (PDT) (envelope-from owner-freebsd-isp@FreeBSD.ORG) Received: from hal-pc.org (hal-pc.org [204.52.135.1]) by hub.freebsd.org (8.8.8/8.8.8) with ESMTP id IAA16049 for ; Wed, 26 Aug 1998 08:09:12 -0700 (PDT) (envelope-from reg@hal-pc.org) Received: (from reg@localhost) by hal-pc.org (8.9.1/8.9.0) id KAA28995; Wed, 26 Aug 1998 10:08:12 -0459 (CDT) Message-Id: <199808261507.KAA28995@hal-pc.org> To: isp@FreeBSD.ORG X-Mailer: Post Road Mailer for OS/2 (Green Edition Ver 2.6) Date: Wed, 26 Aug 1998 10:08:11 -0500 From: "Robert E. Gunn" Reply-To: "Robert E. Gunn" Subject: Re: Quotas for lots of users... Sender: owner-freebsd-isp@FreeBSD.ORG Precedence: bulk X-Loop: FreeBSD.org Addressed to: Karl Pielorz isp@FreeBSD.ORG ** Reply to note from Karl Pielorz Wed, 26 Aug 1998 15:18:37 +0100 > > Is there any 'quick' way of setting Quota's for a group of users? - I can't > easily see a way of using the 'group' / proto-user setup for cloning the stuff > I'm setting up at the moment... > > Is there someway of piping a file that looks like the 'edquota' output back into > the command, e.g. > > " > /usr2: blocks in use: 3, limits (soft = 5000, hard = 5000) > inodes in use: 3, limits (soft = 0, hard = 0) > " > > Thanks in advance... > > Karl Pielorz 1) Setup up a dummy user with the default quota (stencil in this example). 2) To process a file with a list of users from a ksh command line: # for user in $(cat list) > do > edquota -u -p stencil $user > done The syntax will vary slightly depending on what shell you're using, but the idea is to iteratively process each $user with your default quota. -- Robert Gunn <>|Post Office Box 27474 |Voice:+1 713 960 1588 reg@hal-pc.org <>|Houston,Texas 77227-7474|Fax: +1 713 960 9497 HAL-PC: The world's largest computer club and a lot more! Fatal Error: User Executed. To Unsubscribe: send mail to majordomo@FreeBSD.org with "unsubscribe freebsd-isp" in the body of the message