Please whitelist cPanel in your adblocker so that you’re able to see our version release promotions, thanks!

The Community Forums

Interact with an entire community of cPanel & WHM users!

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:
    51
    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

    Joined:
    Dec 13, 2006
    Messages:
    68
    Likes Received:
    1
    Trophy Points:
    158
    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
     
    Stop hovering to collapse... Click to collapse... Hover to expand... Click to expand...
Loading...

Share This Page

  1. This site uses cookies to help personalise content, tailor your experience and to keep you logged in if you register.
    By continuing to use this site, you are consenting to our use of cookies.
    Dismiss Notice