3

Auto creation of cpanel accounts through command line

view full story
linux-howto

http://forums.cpanel.net – Hello, For the past year, we've had customer accounts and noc accounts created from within a cpanel VM automatically through a cron after the VM is provisioned (hyper-v). This worked up until 2 weeks ago when I went into our VM templates and upgraded all of their cPanels as well as the kernel. Now, all functions of the cron job work EXCEPT for the account creation. This is how the creation was being done - USERNAME=$USERNAME DOMAIN=$DOMAIN ## Create a new Account echo '#!/usr/bin/expect -f' > /root/expect echo "spawn /scripts/createacct "$DOMAIN" "$USERNAME (HowTos)