Installation and Usage of the Lazy Administrator's Tools
Author: Michiel Blotwijk <Michiel.Blotwijk@Altiplano.Be>
Release supported: SME 5.5/5.6/6.0
License: GPL
Last updated: 23 January, 2004
Most Up-todate version can be found here: http://www.contribs.org/contribs/mblotwijk/HowToGuides/lazy-admin-tools.htm

Problem:  You have to perform a large number of repetitive admin tasks, which just take too much time to do via the webinterface.

Solution:  Let the SME server do it for you J. The Lazy Administrator's Tools is a set of scripts designed to automate batch tasks and admin jobs for E-Smith/SME servers. Currently the following tools are available:

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

INSTALLATION: 

Download the latest version of the tools from http://www.contribs.org/contribs/mblotwijk/Contribs/lazy-admin-tools/.

Install the tools as 'root':

[root@hogwarts /]# rpm -Uvh  e-smith-lazy_admin_tools-*.rpm

 

This installs the tools in /usr/sbin, the example files in /usr/doc/lazy-admin-tools and the man-pages in /usr/man/man8.


NOTES:

  1. If you are upgrading from a version prior to 0.7.0-1, don't forget to remove manually the old scripts. RPM 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 (--comand-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.