Difference between revisions of "Lat-quota"

From SME Server
Jump to navigationJump to search
Line 61: Line 61:
 
  lat-quota -c "hermione | 0 | 0"
 
  lat-quota -c "hermione | 0 | 0"
 
       Turns off quota for user 'hermione'.
 
       Turns off quota for user 'hermione'.
 +
=== Bugs ===
 +
Please raise bugs under the SME-Contribs section in [http://bugs.contribs.org/enter_bug.cgi bugzilla]
 +
and select the e-smith-lazy_admin_tools component or use {{BugzillaFileBug|product=SME%20Contribs|component=e-smith-lazy_admin_tools|title=this link}}.
 
[[Category:Howto]] [[Category:Administration]]
 
[[Category:Howto]] [[Category:Administration]]

Revision as of 18:30, 24 June 2013

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

Bugs

Please raise bugs under the SME-Contribs section in bugzilla and select the e-smith-lazy_admin_tools component or use this link .