From owner-freebsd-questions Mon Jul 28 21:04:12 1997 Return-Path: Received: (from root@localhost) by hub.freebsd.org (8.8.5/8.8.5) id VAA05244 for questions-outgoing; Mon, 28 Jul 1997 21:04:12 -0700 (PDT) Received: from milehigh.denver.net (milehigh.denver.net [204.144.180.2]) by hub.freebsd.org (8.8.5/8.8.5) with ESMTP id VAA05228 for ; Mon, 28 Jul 1997 21:04:07 -0700 (PDT) Received: from localhost (jdc@localhost) by milehigh.denver.net (8.8.5/8.8.5) with SMTP id WAA26673; Mon, 28 Jul 1997 22:07:15 -0600 (MDT) Date: Mon, 28 Jul 1997 22:07:15 -0600 (MDT) From: John-David Childs To: David Langford cc: questions@FreeBSD.ORG Subject: Re: how make mass changes to user quotas? In-Reply-To: <199707281905.JAA15312@caliban.dihelix.com> Message-ID: MIME-Version: 1.0 Content-Type: TEXT/PLAIN; charset=US-ASCII Sender: owner-freebsd-questions@FreeBSD.ORG X-Loop: FreeBSD.org Precedence: bulk On Mon, 28 Jul 1997, David Langford wrote: > > Is there a way to edit or add user quotas via a script. > > The only program I know of to modify or add quotas is edquota > and it doesnt seem to non-interactive friendly. I kludge this by using awk to grab a list of users to be affected and stuff it in a file that looks like: #1/bin/sh edquota -p protouser username edquota -p protouser nextusername where protouser is a user who has the same defaults as everyone else to be modified (e.g. an existing customer) and username is the account to be affected (The list of users is grabbed from /etc/passwd because the GID of people with similar quota setups is always the same) -- John-David Childs (JC612) @denver.net/Internet-Coach/@ronan.net System Administrator Enterprise Internet Solutions & Network Engineer 901 E 17th Ave, Denver 80218 Any small object that is accidentally dropped will hide under a larger object.