Difference between revisions of "Lazy Admin Tools"

From SME Server
Jump to navigationJump to search
(improved note box text)
Line 48: Line 48:
 
  cd /tmp
 
  cd /tmp
 
  <nowiki>wget http://mirror.contribs.org/contribs//jbennett/sme7/lat/smeserver-lazy_admin_tools-0.9.1-2.noarch.rpm</nowIki>
 
  <nowiki>wget http://mirror.contribs.org/contribs//jbennett/sme7/lat/smeserver-lazy_admin_tools-0.9.1-2.noarch.rpm</nowIki>
  yum localinstall smeserver-lazy_admin_tools
+
  yum localinstall smeserver-lazy_admin_tools-0.9.1-2.noarch.rpm
  
 
More information, examples, and source code can be downloaded from http://mirror.contribs.org/contribs/mblotwijk/Contribs/lazy-admin-tools/
 
More information, examples, and source code can be downloaded from http://mirror.contribs.org/contribs/mblotwijk/Contribs/lazy-admin-tools/

Revision as of 19:42, 23 May 2008

Description

The Lazy Administrator's Tools is a set of scripts designed to automate batch tasks and administration jobs for SME servers. Currently the following tools are available:

Important.png Note:
This HowTo is based on a version created for SME 5.5/5.6/6.0 by Michiel Blotwijk. A new version for sme7.x has been created by J Bennett and is the rpm referred to in the Installation section below.

The original version information can be found here


Available functions

Command Description
lat-users add/delete users (and their directories)
lat-groups add/delete groups
lat-pseudonyms add/delete e-mail pseudonyms for individual users
lat-ibays add/delete ibays (and its directories)
lat-quota set the disk quota for individual users
lat-procmail activate or deactivate procmail for individual users
lat-hosts add hostnames to the server
lat-pptp activate or deactivate pptp access for individualusers
lat-domains create virtual domains
lat-dump create input files for the above, using the configuration files of the SME servers.


Warning.png Warning:
SME Server 7.x supports the use of '@' in pseudonyms, but lat-pseudonym does not by default. See this forum post for a work-around.


Installation

Download and install using the following commands:

cd /tmp
wget http://mirror.contribs.org/contribs//jbennett/sme7/lat/smeserver-lazy_admin_tools-0.9.1-2.noarch.rpm
yum localinstall smeserver-lazy_admin_tools-0.9.1-2.noarch.rpm

More information, examples, and source code can be downloaded from http://mirror.contribs.org/contribs/mblotwijk/Contribs/lazy-admin-tools/

Upgrade notes

1. If you are upgrading from a version prior to 0.7.0-1, don't forget to remove manually the old scripts. Yum will not be able to find and remove them for you.

2. As from version 0.7.0-1 the arguments for lat-groups have changed. Please refer to 'man lat-groups' or to the examples in /usr/doc/lazy-admin-tools for the new format.

Usage

Each tool has its own comprehensive man page. See `man lazy-admin-tools` for an overview of the tools that have been installed.

All tools follow the same concept:

1. Arguments can be specified on the command line (--command-line), or in a file (--input-file) for batch processing.

2. If the arguments are specified on the command line, the arguments must be between quotes (e.g. -c="foo | bar | baz")

3. Most tools recognize the wildcards * and ? in the first argument (e.g -c="foo* | bar | baz").

4. See the various examples in /usr/doc/lazy-admin-tools for the format of the input file.