edit users quota in a script

Nicolas Letellier nicolas at nicoelro.net
Sat Feb 7 04:19:50 PST 2009


On Sat, 07 Feb 2009 14:09:13 +0200
Manolis Kiagias <sonic2000gr at gmail.com> 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.


More information about the freebsd-questions mailing list