NAME

lat-quota - The lazy administrator's tool to set user quota


DESCRIPTION

Sets the disk quota for individual users on Mitel's SME servers (5.x/6.x). This tool is functionally equivalent to the 'Quota management' option in the server-manager, but can be run from the command line or called from an other script. It allows you, for example, to set the disk quota for a large number of accounts in a batch process or on a remote machine via an ssh console.

See /usr/doc/lazy-admin-tools/example.quota for the format of the input file.


SYNOPSIS

lat-quota -c ``user | softlimit | hardlimit''

lat-quota -i /path/to/quota.list


OPTIONS

The following options are supported:

-c ``Arguments'', --command-line=``Arguments''
Take arguments from the command line. See the 'Arguments' section below for the various arguments that are accepted.

-h, --help
Extended help for this tool

-i FILE, --input-file=FILE
Use the information from FILE to set the disk quota for individual users.

Arguments:

   user*      : Must be an existing user name. Wildcards (* and ?)
                are accepted.
   softlimit* : Limit with grace period in kilobytes, unless
                followed by M (megabytes) or G (gigabytes).
   hardlimit* : Absolute limit in kilobytes, unless followed by
                M (megabytes) or G (gigabytes).
   * mandatory field


EXAMPLES

lat-quota -c ``harry | 800M | 1G''

Sets the quota for user 'harry' to 800 MByte (soft limit) and 1 GByte (hard limit).

lat-quota -i /root/quota.list

Sets the quota for the users defined in /root/quota.list. Refer to /usr/doc/lazy-admin-tools/example.quota for an example of an input file.

lat-quota -c ``* | 100M | 120M''

Sets the qquota for all users to 100M / 120M.

lat-quota -c ``hermione | 0 | 0''

Turns off quota for user 'hermione'.


SEE ALSO

lat-group(8), lat-pseudonyms(8), lat-ibays(8), lat-users(8), lat-domains(8), lat-hosts(8), lat-procmail(8), lat-pptp(8), lat-dump(8)


VERSION

Version 0.9.0 (2004-09-08). The latest version is hosted at http://www.contribs.org/contribs/mblotwijk/


COPYRIGHT

(c)2003-2004, Altiplano bvba (http://www.altiplano.be). Released under the terms of the GNU license.


BUGS

Please report bugs to <Bugs@Altiplano.Be>