Date: Mon, 28 Jul 1997 22:07:15 -0600 (MDT) From: John-David Childs <jdc@denver.net> To: David Langford <langfod@dihelix.com> Cc: questions@FreeBSD.ORG Subject: Re: how make mass changes to user quotas? Message-ID: <Pine.BSI.3.95.970728215957.25484F-100000@milehigh.denver.net> In-Reply-To: <199707281905.JAA15312@caliban.dihelix.com>
next in thread | previous in thread | raw e-mail | index | archive | help
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.
Want to link to this message? Use this URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?Pine.BSI.3.95.970728215957.25484F-100000>