Skip site navigation (1)Skip section navigation (2)
Date:      Sat, 7 Feb 2009 12:17:19 -0500
From:      Stephen Corbesero <>
To:        Nicolas Letellier <>
Cc:        FreeBSD Questions <>
Subject:   Re: edit users quota in a script
Message-ID:  <>
In-Reply-To: <>
References:  <>

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

			 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.                        

Want to link to this message? Use this URL: <>