initial commit of file from CVS for smeserver-lazy_admin_tools on Sat Sep 7 20:29:45 AEST 2024

This commit is contained in:
Trevor Batley
2024-09-07 20:29:45 +10:00
parent ab14940b94
commit 376cfcf5b4
31 changed files with 4128 additions and 2 deletions

View File

@@ -0,0 +1,45 @@
The Lazy Administrator's Toolkit
================================
Version: 0.9.0 (2004-09-08)
The Lazy Administrator's Tools is a set of scripts designed to automate batch
tasks and admin jobs for E-Smith/SME servers (5.x/6.x).
Currently the following tools are available:
* lat-user : add/delete users
* lat-group : add/delete groups
* lat-pseudonyms : add/delete e-mail pseudonyms for individual users
* lat-ibays : add/delete ibays
* lat-quota : set the disk quota for individual users
* lat-domains : add domainnames the server
* lat-hosts : add hostnames to the server
* lat-procmail : activate or deactivate procmail for individual users
* lat-pptp : activate or deactivate VPN access for individual users
* lat-dump : create input files for the above lat-tools, based on the
configuration files of the SME servers.
INSTALLATION:<3A>
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.
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:
- Arguments can be specified on the command line (--comand-line), or in a file
(--input-file) for batch processing.
- If the arguments are specified on the command line, the arguments must be
between quotes (e.g. -c="foo | bar | baz")
- Most tools recognize the wildcards * and ? in the first argument
(e.g -c="foo* | bar | baz").
- See the relevant man pages for the exact usage of the various tools.
- See the various examples in /usr/doc/lazy-admin-tools for the format of the
input file.

View File

@@ -0,0 +1,17 @@
# Domainname : Should contain one or more letters, numbers, periods and
# minus signs.
# Wildcards (* and ?) can only be used to delete domainnames!
# Desription : Free text description of the domain.
# I-bay : Location where the content for the website can be found.
# Must be a valid ibay-name. Otherwise the primary website
# of the server is assumed.
#
# @ Mandatory field
#
#------------------------------------------------------------------,
# Domainname@ |Description |I-bay |
#------------------------------------------------------------------'
hogwarts.net |Wizards network |Vault
azkaban.org
delete.me*
delet?.me2

View File

@@ -0,0 +1,24 @@
#
# NB: Please note that the format of the arguments has been changed in
# version 0.7. An (optional) field has been inserted to allow for the
# group id (GID).
#
#
# Group name : Must contain only lower-case letters, numbers, hyphens, periods
# and underscores, and should start with a lower-case letter.
# Wildcards (* and ?) can only be used to delete groups!
# Description : Free text description of the group.
# UID/GID : Group ID. If omitted, the first available free uid/gid will be used.
# Member1..n : Must be a valid account on the server
#
# @ Mandatory field
#
#-------------------------------------------------------------------------------------------------,
# Group name@ |Description |GID |Member1 |Member2 |Member3 | etc... |
#-------------------------------------------------------------------------------------------------'
allstaff |Mailing group for all staff |7003 |michiel | ejo | susanne| nathalie| marco
finance |Finance department | |susanne |nathalie
sales|Sales department|7004 |marco
dev | Development | | michiel | ejo
delete_me*
delet?_me2

View File

@@ -0,0 +1,29 @@
# Hostname : Must contain only letters, numbers, and hyphens, and must
# start with a letter or number.
# Wildcards (* and ?) can only be used to delete hosts!
# Domainname : Must be an existing (virtual) domainname. If omitted, the
# domainname of the server is used.
# Location : Location of the server. Must be one of the follwing:
# 'Local' (on the LAN)
# 'Remote' (on the Internet)
# 'Self' (alias for the SME server)
# Visibility : 'Local' (only visible on the LAN)
# 'Global' (visible on the entire Internet).
# LocalIP : Internal IP number
# GlobalIP : Public IP number
# MacAddress : The ethernet address is optional and causes the DHCP server
# to statically bind the local IP address to the computer with
# this ethernet address.
#
# @ Mandatory field
#
#-----------------------------------------------------------------------------------------------------------,
# Hostname@ |Domainname |Location |Visibility | LocalIP |GlobalIP |MacAddress |
#-----------------------------------------------------------------------------------------------------------'
dumbledore |hogwarts.net |Self
hagrid |azkaban.org |Local |Local |192.168.209.11 | |12:34:56:78:90:AB
quaffle |quiddich.net |Remote |Global |192.168.209.22 |64.12.47.28
seeker |harry.com.uk
dobby
delete_me*
delet?_me2

View File

@@ -0,0 +1,30 @@
# IbayName : Must contain only lower-case letters, numbers, hyphens, periods
# and underscores, and should start with a lower-case letter.
# Wildcards (* and ?) are only accepted to delete ibays.
# Description: Free text description of the ibay.
# Group : Must be an existing group on the server.
# User access: wr-admin-rd-group
# wr-group-rd-everyone
# wr-group-rd-group
# Pub. access: local
# local-pw
# global
# global-pw
# global-pw-remote
# none
# Password : Password for the ibay in clear-text (dangerous!).
# CGI-bin : enabled
# disabled
# UID/GID : User ID. If omitted, the first available free uid/gid will be used.
#
# @ Mandatory field
#
#--------------------------------------------------------------------------------------------------------.
# IbayName@ |Description |Group@ |UserAccess |Publ.Access |Password |CGI-bin | Uid |
#--------------------------------------------------------------------------------------------------------'
intranet |Intranet website |allstaff |wr-admin-rd-group |local | |enabled | 6001
knowledge-db|Support website |dev |wr-group-rd-everyone |global | |enabled
vault |Folder for finance |finance |wr-group-rd-group |local-pw |secret |disabled
toolbox | Usefull tools ||||||6002
delete_me*
delet?_me2

View File

@@ -0,0 +1,12 @@
# users : Must be an existing account on the server.
# Wildcards (* and ?) are accepted.
# pptpaccess : Either 'on' or 'off'.
#
# @ Mandatory field
#
#-------------------------,
# User@ |PPTPaccess@ |
#-------------------------'
* | off
michiel | on
ejo | on

View File

@@ -0,0 +1,20 @@
# User : Must be an existing account on the server. The wildcards * and ?
# are recognized.
# Status : Either 'enabled' or 'disabled'. Default is 'disabled'.
# DelDups : Delete duplicates. Use 'yes' or 'no'. Default is 'no'.
# LogLevel : Amount of log info. Use 'none', 'some' or 'lots'. Default is
# 'some'.
# Mode : Set 'normal' or 'geek' mode. Default is 'normal'.
#
# @ Mandatory field
#
#---------------------------------------------------,
# User@ |Status |DelDups |LogLevel |Mode |
#---------------------------------------------------'
* |enabled |yes |none |normal
class199? |disabled
michiel |enabled |yes |none |geek
marco |enabled |yes |some |normal
susanne |disabled
nathalie|disabled
ejo|enabled|||geek

View File

@@ -0,0 +1,14 @@
# UserName : Must be an existing account on the server.
# Pseudonym1..n : Must contain only lower-case letters, numbers, hyphens,
# periods and underscores, and should start with a lower-case
# letter.
#
# @ Mandatory field
#
#-------------------------------------------------------------------------------,
# UserName@ |Pseudonym1@ |Pseudonym2 |Pseudonym3 | etc... |
#-------------------------------------------------------------------------------'
marco | sales | support |info
root | abuse | noc | security | hostmaster | sysadmin
root | www | webmaster
michiel | michiel.blotwijk

View File

@@ -0,0 +1,19 @@
# UserName : Must be an existing user account on the server. The wildcards
# * and ? are recognized.
# Soft limit : Limit with grace period. Quota sizes are default in kilobytes.
# However, the suffixes "M" for megabytes and "G" for gigabytes
# are also recognized.
# Hard limit : Absolute limit. Quota sizes are default in kilobytes. However,
# the suffixes "M" for megabytes and "G" for gigabytes are also
# recognized.
#
# @ Mandatory field
#
#-------------------------------------------------------------------------------'
# User@ |Soft limit@ |Hard limit@ |
#-------------------------------------------------------------------------------'
* |500M |550M
class199? |200 |250M
michiel |5G |6G
nathalie |500000 |550000
susanne |500M |550M

View File

@@ -0,0 +1,10 @@
# User : Must contain only lower-case letters, numbers, hyphens, periods
# and underscores, and should start with a lower-case letter.
# Wildcards (* and ?) can only be used to delete users!
# EncPassword : Encrypted password in the /etc/shadow file for this user
# @ Mandatory field
#
#-------------------,
# User@ |EncPasswd@ |
#-------------------,
nathalie|gsdt42r5tdsf

View File

@@ -0,0 +1,29 @@
# User : Must contain only lower-case letters, numbers, hyphens, periods
# and underscores, and should start with a lower-case letter.
# Wildcards (* and ?) can only be used to delete users!
# FirstName : First name of the user. May contain spaces.
# LastName : Last name of the user. May contain spaces.
# Passwd : Password for the user in clear-text (dangerous!). If left
# blank, the account will remain locked.
# EmailForward: Must be one of the following: local, forward or both. Default
# is local.
# Forward Add.: Must be an working e-mail adres.
# UID/GID : User ID. If omitted, the first available free uid/gid will be used.
# Group(s) : Group name(s) to which the user should be added. If the
# group doesn't exist, it will be created.
# If more than one group name is specified, they must be
# separated by the pipe character (|)
#
# @ Mandatory field
#
#-----------------------------------------------------------------------------------------------------------------------------------------------------------------,
# User@ |FirstName@ |LastName@ |Passwd |Department |Company |Street |City |Phone |Emailfrwrd |Forward Address | UID/GID |
#-----------------------------------------------------------------------------------------------------------------------------------------------------------------'
michiel |Michiel |Blotwijk | |Development |Altiplano bvba |Muntweide 7 |B-1785 Brussegem |+32 2 305.70.76 |forward |Michiel@Altiplano.Be | 9001
marco |Marco |Blanc |secret |Sales |Altiplano bvba |Muntweide 7 |B-1785 Brussegem |+32 2 305.70.76
ejo |Ejo |Burger ||||||||| 9002
gilbert |Gilbert |Volk |||||||||| allstaff| accounting | management
nathalie|Nathalie |Butterfly
susanne |Susanne |Rodin
delete_me*
delet?_me2