Skip site navigation (1)Skip section navigation (2)
Date:      Sat, 7 Feb 2009 12:17:19 -0500
From:      Stephen Corbesero <corbesero@fast.net>
To:        Nicolas Letellier <nicolas@nicoelro.net>
Cc:        FreeBSD Questions <freebsd-questions@freebsd.org>
Subject:   Re: edit users quota in a script
Message-ID:  <20090207171719.GA22791@frodo.corbesero.net>
In-Reply-To: <20090207130025.f2169029.nicolas@nicoelro.net>
References:  <20090207130025.f2169029.nicolas@nicoelro.net>

Next in thread | Previous in thread | Raw E-Mail | Index | Archive | Help

Besides the -e switch to edquota as has already been mentioned, I used
to make extensive use of the -p switch to use a prototype.  

For example, you could create a "fake" user (or group) named
"q-typical", assign that user the quotas for a typical user, and then
use

			 edquota -p q-typical newuser

to assign those quotas to the new user.  You could maintain several
prototypes for different classes of users or groups.



On Sat, Feb 07, 2009 at 01:00:25PM +0100, 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).


-- 
Stephen Corbesero                        It's always darkest 
Bethlehem, PA 18015                      before pitch black.
corbesero@ptd.net                        



Want to link to this message? Use this URL: <http://docs.FreeBSD.org/cgi/mid.cgi?20090207171719.GA22791>