Community Forums
Connect with us on LinkedIn
+ Reply to Thread
Results 1 to 2 of 2
  1. #1
    Registered User
    Join Date
    Mar 2010
    Posts
    2

    Default how to create multiple accounts via script

    Hello,

    I need to create +/- 100 accounts onto a server under the same reseller.

    They have all the same package, but different usernames.

    They should also all need to be changed the A-record to point to another server.

    Who can help me setting this up.

    Thanks

  2. #2
    cPanel Partner NOC cPanel Partner NOC Badge WiredTree Joe's Avatar
    Join Date
    Dec 2006
    Location
    Chicago, IL
    Posts
    68

    Default

    You can use /scripts/wwwacct to create accounts via commandline:

    root@host [~]# /scripts/wwwacct
    Please use the this syntax
    wwwacct <domain> <user> <pass> <quota> <cpmod[advanced/?]> <ip[y/n]> <cgi[y/n]> <frontpage[y/n]> <maxftp> <maxsql> <maxpop> <maxlst> <maxsub> <bwlimit> <hasshell[y]/[n]> <owner> <plan> <maxpark> <maxaddon> <featurelist> <contactemail> <use_registered_nameservers> <language>

    The owner flag will set the account ownership so something like:

    /scripts/wwwacct joetest.com joe joessupersecretpassword 1000M x3 n y n 99 99 99 99 99 0 y RESELLERUSERNAME

    should work and you can bash script it from there. As for the DNS aspect of your issue, you can try using the DNS templates to set the A entry to the remote IP. I think that might work.

    Edit Zone Templates

Similar Threads & Tags
Similar threads

  1. How to create multiple accounts using a shared IP?
    By jenny in forum cPanel and WHM Discussions
    Replies: 5
    Last Post: 06-06-2008, 10:17 PM
  2. 'Copy Multiple Accounts' Script
    By markfrompf in forum cPanel and WHM Discussions
    Replies: 0
    Last Post: 03-31-2008, 12:53 PM
  3. admin script for multiple servers/accounts
    By jeroman8 in forum cPanel and WHM Discussions
    Replies: 1
    Last Post: 02-20-2008, 11:21 AM
  4. How do I create multiple user accounts for a single cPanel?
    By .eXcellion in forum cPanel and WHM Discussions
    Replies: 2
    Last Post: 07-12-2005, 08:34 PM
  5. how to create cpanel or webmail login script with multiple domain
    By arif_ceo in forum cPanel and WHM Discussions
    Replies: 1
    Last Post: 04-23-2004, 12:53 PM
Linkedin       Facebook       Twitter       RSS       Flickr       YouTube