Changes

Jump to navigation Jump to search
2,244 bytes added ,  18:47, 24 June 2013
Created page with "===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/7.x/8..."
===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/7.x/8.x). This tool is functionally equivalent to the 'Quota manage-
ment' 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.
===Smecontribs repository for SME Server===

yum install --enablerepo=smecontribs smeserver-lazy_admin_tools
signal-event post-upgrade; signal-event reboot

===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'.

Navigation menu