create-reseller.pl

Create one reseller account

This command adds a single reseller account to your Virtualmin system. The required parameters are --name and --pass to specify the login name and password respectively, but you can also use other parameters to set limits on the reseller to control the number of servers and other resources he can use.

The following command would create a reseller called bob who is allowed to create up to 5 servers and allocate 1 GB in disk quota space. He will also be granted access to a standard set of virtual server features :

  create-reseller.pl --name bob --pass smeg --desc "Bob Smith" --max-doms 5 --max-quota 1000000 --allow dir --allow unix --allow webmin --allow web --allow dns --allow mysql

The --max-doms parameter sets the maximum number of servers that can be created by this reseller, and by the owners of any virtual servers that he manages. Similarly, the --max-dbs option sets a limit on the number of MySQL and PostgreSQL databases that can be created in servers that the reseller owns.

The --max-quota option sets the maximum disk quota that the reseller can allocate to virtual servers that he creates. The option --max-mailboxes sets a limit on the number of mail/FTP/database users that can be created in servers managed by the reseller.

The --allow option can be given multiple times, each instance of which must be followed by the short code for a feature to allow the reseller to use. Only allowed features can be selected when the reseller is creating a new virtual server.

If you want the new reseller to use a custom IP address for his virtual servers, this can be specified with the --ip-address option followed by an IP active on your system. Similarly, you can specify custom nameservers for the DNS domains he creates with the --nameserver flag. This can appear multiple times, and each instance must be followed by a valid nameserver hostname.

Command Line Help

usage: create-reseller.pl    --name login
                             --pass password
                             [--lock]
                             [--desc description]
                             [--email address]
                             [--max-doms number]
                             [--max-aliasdoms number]
                             [--max-realdoms number]
                             [--max-quota number]
                             [--max-mailboxes number]
                             [--max-aliases number]
                             [--max-dbs number]
                             [--max-bw number]
                             [--allow feature] ...
                             [--read-only]
                             [--hide
                             [--subdom forced.parent]
                             [--logo url|"none"]
                             [--link url]
                             [--ip-address address]
                             [--nameserver hostname]*
 
virtualmin_api_create_reseller.txt (294 views) · Last modified: 2008/12/08 13:12
 
Recent changes RSS feed

Talk and Get Help

Support
Forums
Bugs and Issues

Get Virtualmin

OS Support
Buy Online
Download
Copyright 2005-2007 Virtualmin, Inc. All rights reserved.