lat-users - The lazy administrator's tool to add user accounts
Creates or deletes user accounts on Mitel's SME servers (5.x/6.x). This tool is functionally equivalent to the 'User accounts' 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 create a large number of accounts in a batch process, or delete accounts on a remote machine via an ssh console.
See /usr/doc/lazy-admin-tools/example.users for the format of the input file.
lat-tools -a [-p] -c ``user | first | last | password | department | company | street | city | tel | forward | email | uid | group1 [| group..]''
lat-users -a [-p] -i /path/to/users.list
lat-users -d [-f] -c ``user''
lat-users -d [-f] -i /path/to/users.list
The following options are supported:
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. first* - First name last* - Last name password - Password for the user (in clear-text!) department - Department company - Company street - Street name and number city - Zip & City tel - Telephone number forward - E-mail delivery: 'local', 'forward' or 'both' email - Forwarding e-mail adres uid - User ID. If omitted, a suitable uid will be generated. group(s) - Group name(s) to which the user should be added. If the group doesn't exist, it will be created.
* mandatory field
lat-users -a -c ``harry | Harry | Potter | Quidditch''
Creates user 'harry' from the command line, with password 'Quidditch'.
lat-users -a -i /root/users.list
Uses the arguments specified in /root/users.list to create user accounts. Please refer to /usr/doc/lazy-admin-tools/example.users for an example of an input file.
lat-users -d -f -c ``user*''
Deletes all user accounts that start with 'user'. All users and their files will be deleted without prompting (-f).
lat-users -a -p -i /root/users.list
Creates user accounts as defined in /root/users.list and generates a random password for each user. The names and passwords are written to ./passwords.new.
lat-users -a -c ``ron | Ron | Weasley ||||||||| 6005''
Creates user 'ron' with user ID 6005. All other fields (company, departments, etc.) are left empty.
lat-users -a -c ``ron | Ron | Weasley |||||||||| quiddich | dada ''
Creates user 'ron' and assigns him to groups quiddich and dada. If any of these groups doesn't exist, it will be created.
lat-group(8), lat-pseudonyms(8), lat-ibays(8), lat-quota(8), lat-domains(8), lat-hosts(8), lat-procmail(8), lat-pptp(8), lat-dump(8)
Version 0.9.0 (2004-09-08). The latest version is hosted at http://www.contribs.org/contribs/mblotwijk/
(c)2003-2004, Altiplano bvba (http://www.altiplano.be). Released under the terms of the GNU license.
Please report bugs to <Bugs@Altiplano.Be>