The Community Forums

Interact with an entire community of cPanel & WHM users!
  1. This site uses cookies. By continuing to use this site, you are agreeing to our use of cookies. Learn More.

how to create multiple accounts via script

Discussion in 'General Discussion' started by mgo72, Mar 6, 2010.

  1. mgo72

    mgo72 Registered

    Joined:
    Mar 6, 2010
    Messages:
    2
    Likes Received:
    0
    Trophy Points:
    1
    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. WiredTree Joe

    WiredTree Joe Well-Known Member
    PartnerNOC

    Joined:
    Dec 13, 2006
    Messages:
    68
    Likes Received:
    1
    Trophy Points:
    8
    Location:
    Chicago, IL
    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
     
Loading...

Share This Page