how to create a whm reseller acct and assign a domain?WHM/Cpanel comes with a lot of script located in /script directory. The /script/wwwacct can be usefull to create acct from ssh. So to create a new acct,we need to take a look at its syntax,run the command below from ssh:
It will print:
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>
So,we need to supply domain,user ,pass etc,for example,
/scripts/wwwacct abcd.com abcd ‘password’ 0 x3 y y y 0 0 0 0 0 0 n root 0 0 0 ” ” 0 en
This can be very usefull if you need to create a lot of new acct. The drawback is that we need to confirm for every acct.The comfirmation may can be bypassed with sleep and echo command.