From owner-freebsd-questions@FreeBSD.ORG Sat Feb 7 12:09:42 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 0571C10657E1 for ; Sat, 7 Feb 2009 12:09:42 +0000 (UTC) (envelope-from sonic2000gr@gmail.com) Received: from ug-out-1314.google.com (ug-out-1314.google.com [66.249.92.175]) by mx1.freebsd.org (Postfix) with ESMTP id 833858FC27 for ; Sat, 7 Feb 2009 12:09:41 +0000 (UTC) (envelope-from sonic2000gr@gmail.com) Received: by ug-out-1314.google.com with SMTP id j40so51137ugd.39 for ; Sat, 07 Feb 2009 04:09:16 -0800 (PST) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=gamma; h=domainkey-signature:received:received:message-id:date:from :user-agent:mime-version:to:cc:subject:references:in-reply-to :content-type:content-transfer-encoding; bh=Y2akpF5m/fqwBs7+4c1IiPzpaSZB/hpdAattcecXUno=; b=nRLATpcd/XaxVN5bxoS73d4dqekJqGmsxZY4Ca3EwcHJiOE2WIkYaPsfa4h/Lwp4JW JhQ1UUjBgqfJRhGtnJ5lE62DkOrE3rx40AImzP89IlREqaHcLB2iE5BnQ1iv7cHzZ99T MgntfMpWx7scaR/pN9QXxB/gYAnc9aCajE93w= DomainKey-Signature: a=rsa-sha1; c=nofws; d=gmail.com; s=gamma; h=message-id:date:from:user-agent:mime-version:to:cc:subject :references:in-reply-to:content-type:content-transfer-encoding; b=jrWlllOzGMYauXsn4rh0U/3/VzOqWcu7E34HACE441VK342A/IDD7Bef4Ef1lQkWv1 4I6USMuIJm7shySDC2EcJ3mrcpg/VOTw3rCpgtMPZw/sPADoOJh50Rb3vN5PJo2ohE5/ wnA9Ci3ni6X3XlNA4DBXb4S/Gbpk1iScnVyQ0= Received: by 10.66.240.12 with SMTP id n12mr1232823ugh.75.1234008556900; Sat, 07 Feb 2009 04:09:16 -0800 (PST) Received: from joshua.freebsdgr.org (athedsl-4554255.home.otenet.gr [94.70.74.23]) by mx.google.com with ESMTPS id d38sm2351293ugf.23.2009.02.07.04.09.14 (version=TLSv1/SSLv3 cipher=RC4-MD5); Sat, 07 Feb 2009 04:09:16 -0800 (PST) Message-ID: <498D79E9.8050800@gmail.com> Date: Sat, 07 Feb 2009 14:09:13 +0200 From: Manolis Kiagias User-Agent: Thunderbird 2.0.0.19 (X11/20090104) MIME-Version: 1.0 To: Nicolas Letellier References: <20090207130025.f2169029.nicolas@nicoelro.net> In-Reply-To: <20090207130025.f2169029.nicolas@nicoelro.net> Content-Type: text/plain; charset=ISO-8859-1; format=flowed 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:09:47 -0000 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.