From owner-freebsd-questions@FreeBSD.ORG Sat Feb 7 12:19:50 2009 Return-Path: Delivered-To: freebsd-questions@freebsd.org Received: from mx1.freebsd.org (mx1.freebsd.org [IPv6:2001:4f8:fff6::34]) by hub.freebsd.org (Postfix) with ESMTP id A571E1065673 for ; Sat, 7 Feb 2009 12:19:50 +0000 (UTC) (envelope-from nicolas@nicoelro.net) Received: from mail.nicoelro.net (helm.nicoelro.net [87.98.216.147]) by mx1.freebsd.org (Postfix) with ESMTP id 65CB18FC1E for ; Sat, 7 Feb 2009 12:19:50 +0000 (UTC) (envelope-from nicolas@nicoelro.net) Received: by mail.nicoelro.net (Postfix, from userid 58) id A223B791C3; Sat, 7 Feb 2009 13:19:49 +0100 (CET) X-Spam-Checker-Version: SpamAssassin 3.2.5 (2008-06-10) on helm.nicoelro.net X-Spam-Level: X-Spam-Status: No, score=-4.4 required=6.0 tests=ALL_TRUSTED,AWL,BAYES_00 autolearn=ham version=3.2.5 Received: from orthanc (mne69-8-82-247-37-160.fbx.proxad.net [82.247.37.160]) (using TLSv1 with cipher DHE-RSA-AES256-SHA (256/256 bits)) (No client certificate requested) (Authenticated sender: nicolas@nicoelro.net) by mail.nicoelro.net (Postfix) with ESMTP id 6DF1078ED3; Sat, 7 Feb 2009 13:19:48 +0100 (CET) Date: Sat, 7 Feb 2009 13:19:49 +0100 From: Nicolas Letellier To: Manolis Kiagias Message-Id: <20090207131949.382844fd.nicolas@nicoelro.net> In-Reply-To: <498D79E9.8050800@gmail.com> References: <20090207130025.f2169029.nicolas@nicoelro.net> <498D79E9.8050800@gmail.com> X-Mailer: Sylpheed 2.6.0 (GTK+ 2.10.14; i686-pc-mingw32) Mime-Version: 1.0 Content-Type: text/plain; charset=US-ASCII Content-Transfer-Encoding: 7bit Cc: FreeBSD Questions Subject: Re: edit users quota in a script X-BeenThere: freebsd-questions@freebsd.org X-Mailman-Version: 2.1.5 Precedence: list List-Id: User questions List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Sat, 07 Feb 2009 12:19:50 -0000 On Sat, 07 Feb 2009 14:09:13 +0200 Manolis Kiagias wrote: > Nicolas Letellier wrote: > > Hello. > > > > I use a script to create automatically my users (with pw, and mkdir, etc...). I use quota, and I have to excute 'edquota -u user', and enter quota informations. So, the process can not be automaticated. And cannot be part of my script. > > > > I don't find informations in edquota(8) manpages about editing user quota without open a file. > > > > Is an other solution exists? I'm looking for a solution in command line (for my script). > > > > Regards, > > > > > The edquota(8) command accepts a '-e' option that allows it to set > quotas non-interactively. Try man edquota again. Haaa... yes, I forgot -e option. Thanks a lot! Regards, -- -Nicolas.