Edit the /var/cpanel/users files
The package name is stored in each account's file in /var/cpanel/users/. You can use the Linux replace command to search for each instance of a string in a file and replace it. For example:
Code:
# replace "PLAN=default" "PLAN=mynewplan" -- /var/cpanel/users/foo
will replace every instance of "PLAN=default" with "PLAN=mynewplan" in /var/cpanel/users/foo. "PLAN" in this case is the same as "package" in the WHM/cPanel interface.
You can automate this by using wildcards, though I urge extreme caution when using a wildcard and recommend backing up the /var/cpanel/users directory first.
Code:
# cp -Rp /var/cpanel/users /root/users-pre-replace.bak
# replace "PLAN=xxxx" "PLAN=xaxa" -- /var/cpanel/users/*
# /scripts/updateuserdomains
/scripts/updateuserdomains should be run anytime any file is edited in the /var/cpanel/users directory.
I recommend reviewing the documentation for the replace command before using it. You can do this by typing "man replace" at the shell command prompt, or it is available online from several sources, such as this one:
replace(1): string-replacement utility - Linux man page