If you’ve ever wanted to create a cpanel account from the command line, here is the command to do it.
The Syntax of this command is as follows:
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>
/scripts/wwwacct newdomain.com newuser password 0 x3 n n n 0 0 0 0 0 0
The above creates a new account with the domain called newdomain.com
It sets their username to new user
It sets their pasword to passwordQuota is unlimited, the theme is x3, dedicated IP is not assigned, CGI is turned off, FrontPage is turned off, maxftp is unlimted, The number of databases is unlimited, The number of email accounts they can create is unlimited, The amount of mailing lists is unlimited, The number of subdomains is unlimited, bandwidth is unlimited.
All the remaining options that were not specified in the command are set to the defaults you have set in your WHM.
Anything set to 0 is unlimited.